RailsConf 2017: The Secret Life of SQL: How to Optimize Database Performance by Bryana Knight

  Рет қаралды 7,382

Confreaks

Confreaks

Күн бұрын

RailsConf 2017: The Secret Life of SQL: How to Optimize Database Performance by Bryana Knight
There are a lot of database index and query best practices that sometimes aren't best practices at all. Need all users created this year? No problem! Slap an index over created_at! What about this year's active OR pending users, sorted by username? Are we still covered index-wise? Is the query as fast with 20 million users? Common rules of thumb for indexing and query crafting aren’t black and white. We'll discuss how to track down these exceptional cases and walk through some real examples. You'll leave so well equipped to improve performance, you won't be able to optimize fast enough!

Пікірлер: 7
@dkennell998
@dkennell998 4 жыл бұрын
I'd always been confused about what exactly indexes were; thanks for breaking it down so nicely!
@jasdeepsinghgrover2470
@jasdeepsinghgrover2470 2 жыл бұрын
Another rule... Always remember your functional dependencies... Conditions on dependent columns can be converted to conditions on independent columns which generally have indexes. Like to get all apples a redundant condition on object type to be fruit can help
@m.purushothamreddy4901
@m.purushothamreddy4901 4 ай бұрын
nice talk thanks for the knowledge.
@alfredoscoppa9455
@alfredoscoppa9455 6 жыл бұрын
Awesome talk! I would add that PG planner is probably very smart and that could be the reason why PG intentionally excluded something like index hint.
@codyelhard8012
@codyelhard8012 4 жыл бұрын
I thought indexes were magic before this video
@luisalfonzogonzalez2265
@luisalfonzogonzalez2265 3 жыл бұрын
She is awesome!!! LOVED HER EXPLANATION
@grawlixes
@grawlixes 6 жыл бұрын
This talk was great. Thanks!
RailsConf 2017: A Deep Dive Into Sessions by Justin Weiss
32:42
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 3,9 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,9 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 184 МЛН
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 43 М.
How do indexes make databases read faster?
23:25
Arpit Bhayani
Рет қаралды 52 М.
When to Use a Subquery in SQL
8:50
Database Star
Рет қаралды 30 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Что не так с Sharp? #sharp
0:55
Не шарю!
Рет қаралды 117 М.
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 35 МЛН