Giter VIP home page Giter VIP logo

sql-indexing's Introduction

SQL Indexing

This assignment will review basic knowledge of the SQL language and incorporate indexing to improve query performance against a large dataset.

Assignment

Database Creation

You will need to begin by creating the database to work on. You may download the datafile and initialize the SQLIte database using make calls.db. Alernatively, you may download the datafile from the following URL and import it to a database manually:

https://data.seattle.gov/api/views/33kz-ixgy/rows.csv?accessType=DOWNLOAD

Test queries

I've provided a number of queries in the file queries.sql. This can be executed using the command .read queries.sql from your SQLite instance. Your goal is to improve the performance of these queries by only modifying the database and not the queries themselves. You'll want to use explain query plan to determine what may be causing queries to run slowly and add appropriate indices.

Please create a file named solution.sql that creates the appropriate indices and that includes comments for each index you create explaining why you created it and how much it improved performance.

sql-indexing's People

Contributors

jncraton avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.