dwyl / learn-postgresql

🐘 Learn how to use PostgreSQL and Structured Query Language (SQL) to store and query your relational data. 🔍
212 stars 23 forks source link

What is an index and how is it useful? #18

Open nelsonic opened 7 years ago

nelsonic commented 7 years ago

The Problem ...

Quite a few of our projects are using PostgreSQL now and one in particular is running up against "slow query" issues ... this is because the database has no index so any query that does JOIN with multiple tables will (almost by definition) take ages to compute. ⏳ 😢

oxabs-no-indexes-in-database

Tasks/Todo:

Following the documentation-driven-learning approach, undertake the following:

Further Reading (please add moar!!)