Explore the World's Best Ideas
Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.
Terminology:
How indexes work:
When to use Single-Column Indexes:
Index on (x):
SELECT * FROM table WHERE x = 11
When to use Multi-Column Indexes:
Index on (t, x):
SELECT * FROM table WHERE t = 9 and x = 11
8
50 reads
MORE IDEAS ON THIS
When it can be used:
1. Exact matches:
2. Using wild card character (% or _) at the end:
3. Less effective, bu...
7
14 reads
Order of the columns matter.
The index is useless if the first column doesn't appear in the WHERE clause.
Example 1:
An index on (t, x) will not be used in this query:
8
19 reads
7
19 reads
Wrapping the indexed column in a function nullifies the index almost completely.
Index:
CREATE INDEX e_idx ON users (email)
Query:
SELECT COUNT(*)
FROM users&...
7
19 reads
What is it?:
What is it good for?:
9
107 reads
CURATED FROM
IDEAS CURATED BY
Other curated ideas on this topic:
Order of the columns matter.
The index is useless if the first column doesn't appear in the WHERE clause.
Example 1:
An index on (t, x) will not be used in this query:
Pandas is a Python language package, which is used for data processing. This is a very common basic programming library when we use Python language for machine learning programming. This article is an introductory tutorial to it. Pandas provide fast, flexible and expressive data structures with t...
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates