1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
This commit is contained in:
Samuel Štancl 2022-03-12 23:01:24 +01:00
parent fdd9549f41
commit 4af817e2b0
6 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
title: 'The order of columns in multi-column indices matters'
tweet_id: '1502367764119314433'
thread_slug: weekly-thread-2022-10
author_username: tobias_petry
images:
- 'https://pbs.twimg.com/media/FNZ80F6XMAcIeTt.jpg'
created_at: 2022-03-11T19:36:02+00:00
slug: the-order-of-columns-in-multi-column-indices-matters
---
⚡️ Database Tip
Creating indexes is a handcraft learned from experience, multiple-column indexes is a lot more complicated. But it doesn't have to be complicated!
Here are 3 simple rules for the column ordering of multiple column indexes, solving 80% of the perf problems.