Speed up MySQL 25-100x with Indexing

Speed up MySQL 25-100x with Indexing

AnotherMaker

5 лет назад

31,749 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bowie
Bowie - 15.07.2023 18:41

Additionally I think the query would speed up immensely if you changed the loop from querying a thousand times into into building a single query that has a range in it. Queries in loops are a big no go in general

Ответить
pj mclenon
pj mclenon - 25.06.2023 15:14

Hello post your link to code and itgers in comments
Have a nice day
Lisa

Ответить
IchBinDuck
IchBinDuck - 10.05.2023 11:37

thank you so so much!

Ответить
Kuba S.
Kuba S. - 12.12.2022 03:43

So glad I found this vid. Thank you!

Ответить
Md Rakib
Md Rakib - 17.09.2022 17:47

Can you optimize my script where quickly search queries from 30 billion recoreds mysql php? My now codes are simple .

Ответить
Körsbär
Körsbär - 26.02.2022 19:55

The code is way too small I can't see anything.

Ответить
miguelbel93
miguelbel93 - 23.08.2021 13:15

You can tune the query with something like "SELECT id, SUM(price) AS INCOME FROM sales GROUP BY item, cashier" and add some "WHERE" conditions to filter just the items and/or cashier which you want (i.e WHERE cashier=5).

What you are facing is a N+1 problem. If the query is processed in an asynchronous way that cannot be a problem but in your case is synchronous so you have to focus on fixing the N+1 and you can either optimize the query as I suggested or create a projection. 11s normally isn't acceptable for loading a webpage.

Anyway a 4x gain in performance with just indexes is a good example of how powerful they can be.

Ответить
Didin Khoerul
Didin Khoerul - 22.08.2021 08:53

can this be used in VB applications ?

Ответить
Tapan Karmakar
Tapan Karmakar - 16.08.2021 15:35

plz zoom view unable to view from mobile

Ответить
salehmohammed nasseralobidi
salehmohammed nasseralobidi - 31.07.2021 19:27

Video not complete what is next step

Ответить
Abdul Rehman
Abdul Rehman - 15.07.2021 14:06

Don't run queries inside loop, instant performance boost. Bonus: use composite index(cashier, item), super instant performance boost.

Ответить
Mayur Chavhan
Mayur Chavhan - 28.05.2021 10:08

You've explained so well so please keep on coming like this video, It will help lot of people to save so much money on server costing.

Ответить
Tural Rzaxanov
Tural Rzaxanov - 08.02.2021 09:11

thanks bro.

Ответить
Amanjot Singh
Amanjot Singh - 06.10.2020 10:55

Is it bad if I index 7-8 out of 24 columns in the table? From which factor it will affect the database which have more than 300k rows of data in table? Can you please help me with it? Thanks in advance

Ответить
Viral Drift
Viral Drift - 04.09.2020 23:46

Can i make many indexes if i need to call large amount to a specific column?

Ответить
Ivinson Lima
Ivinson Lima - 14.06.2019 22:13

Top Dam!!!! Tks for the tips!

Ответить