Тёмный

Mysql Index Tutorial | Make websites 100 Times Faster!!! Query time from 2 Sec to 3 Milli Seconds 

TechnoTrax
Подписаться 2,4 тыс.
Просмотров 35 тыс.
50% 1

Here I'll show how we can speed up our Mysql Queries using MySQL indexes. We'll convert queries that take over 2 Seconds to under 3 Milli Seconds.
Create Index: dev.mysql.com/...
Drop Index: dev.mysql.com/...
Create table: dev.mysql.com/...
Alter Table: dev.mysql.com/...
Mysql Indexes allow us tell Mysql databases to index specific columns. This works similar to how regular indexes work in books. Similarly, when DB tables are indexed, Mysql searches in the index column to return the data. This is faster since it does not crawl through each row, but instead uses binary search to get the results. Mysql by default uses B-Tree index on all indexed columns.
In this Mysql Index Tutorial, we will create index on a table with close to 3 million records. We will use index on single column and on multiple columns and see the time differences. Here we will also how Mysql Indexes work and how Binary search concept is used in the Mysql Index.
SUBSCRIBE: / @technotrax

Наука

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@jamesdube7597
@jamesdube7597 2 года назад
Thanks, brought my query from 40 seconds to 200 ms on a table with 12 million entries
@amosherron
@amosherron 2 года назад
This video helped me take a query from 25 seconds to 0 seconds! Thank you!
@webdbase
@webdbase Год назад
The query has been cached...
@heyjitendra
@heyjitendra Год назад
How to do cache query? Using redis??
@alex-sd
@alex-sd 2 года назад
Excellent explanation on this topic. Thanks so much!
@banganirikifidele2432
@banganirikifidele2432 2 года назад
Exactly, This is the solution of what I was looking for
@ranvijaymehta
@ranvijaymehta 2 года назад
Wow now i became expert also
@KerbadouGhazali
@KerbadouGhazali Год назад
Thanks a lot for this tutorial, you helped me a lot.
@TechnoTrax
@TechnoTrax Год назад
You're welcome!
@ashutoshdwivedi3976
@ashutoshdwivedi3976 2 года назад
Can you please share the .sql file for practice? Thanks in advance
@NikGamer1793
@NikGamer1793 2 года назад
Thanks mate, was avoiding to learn this as couldn't find such simple example. 😁✌
@emekatimothyiloba699
@emekatimothyiloba699 Год назад
Nice Explanation
@artemisaix
@artemisaix 2 года назад
What are the guidlines for desinging index on a table.? I mean for example, how many columns can I index, what are the best kind of columns to add an index, what are the NEVER DO on index g design? If someone have info about that I'll appreciate
@theyoogle
@theyoogle Год назад
Its good, please make a tutorial on mysql cpu/ram configuration
@bekaarcontent6482
@bekaarcontent6482 3 года назад
Perfect Explaining Thanks Dude !
@mariemmatri8743
@mariemmatri8743 3 года назад
Great video, Thanks a lot !!
@nareshbisht7620
@nareshbisht7620 2 года назад
Bro this is a quality video thanks you. you should make more video.
@Laravelcode
@Laravelcode Год назад
this is not valid way to index to any varchar
@luciano_mdc7443
@luciano_mdc7443 3 месяца назад
Which is your editor or client?
@nizomiddinzaripov4655
@nizomiddinzaripov4655 2 года назад
very useful video, thank you!
@chintanpatel2229
@chintanpatel2229 3 года назад
Life saver video.
@pctechcomputers513
@pctechcomputers513 11 месяцев назад
hi. we are getting an FATAL error when we update any data. Can you please help.
@georgetsamis6318
@georgetsamis6318 3 года назад
Really great and simple video
@papsirhty5812
@papsirhty5812 2 года назад
Hi sir sorry hope you can help me i want to apply this tutorial on my simple website to speed up the result everytime i hit search button. Ive already add index. I mean its working using mysql but not working in my website ? But when i drop the table the button is working again. Thank u God bless
@bhumit070
@bhumit070 Год назад
Will this still work if we use LIKE operator for querying data
@falentinodjoka6732
@falentinodjoka6732 Год назад
I've tried your tutorial, but it does not give me an effect. I don't know why, but maybe cause my table only contain 2035 rows data, so i can't feel the effect of index. Can I get that table please? I wanna try it on my localhost.
@Rahulverma-zt3sx
@Rahulverma-zt3sx 3 года назад
Thank you so much
@shericeross3241
@shericeross3241 2 года назад
PERFECT!!
@maksat607
@maksat607 3 года назад
How about indexing date column?
@anurajms
@anurajms Год назад
thank you
@pradnyakasar614
@pradnyakasar614 Год назад
I got this error (Error Code: 1071. Specified key was too long; max key length is 3072 bytes)
@singarimahalaxmi6835
@singarimahalaxmi6835 3 года назад
FOR EX. MY TABLE SIZE IS 300GB THEN INDEXES ARE WORKING FING OR ANY ALTERNATE WAY IS THERE IN MYSQL? PLZ SUGGEST ME
@johnsailor3590
@johnsailor3590 Год назад
Those queries are running with MySQL cache…. Those aren’t the correct results.
@tioadjie5361
@tioadjie5361 2 года назад
Thank you query faster
@MdRakib-rc6ub
@MdRakib-rc6ub 2 года назад
I need a simple script. Search query from 100 million rows faster way? Budget $50
@nguyenlu5713
@nguyenlu5713 Год назад
Make partition and index
@codemelife
@codemelife 2 года назад
❤❤
@thangws7064
@thangws7064 3 года назад
Your video is so great. Can you post the .sql file on because i want to practice this. Thanks so much ❤️
@KornYellow
@KornYellow 2 года назад
หัวจัย
@hirinux413
@hirinux413 2 года назад
Good explanation!
@ahmedhelal174
@ahmedhelal174 2 года назад
Thank you
Далее
Mysql Index Tutorial | [Simple Explanation] [2020]
6:56
I've been using Redis wrong this whole time...
20:53
Просмотров 360 тыс.
Я ИДЕАЛЬНО ПОЮ
00:31
Просмотров 476 тыс.
Это ваши Патрики ?
00:33
Просмотров 33 тыс.
Офицер, я всё объясню
01:00
Просмотров 2,4 млн
SQL Index |¦| Indexes in SQL |¦| Database Index
9:57
Faster database indexes (straight from the docs)
13:28
Просмотров 126 тыс.
When should you shard your database?
21:20
Просмотров 78 тыс.
Pagination in MySQL - offset vs. cursor
13:20
Просмотров 58 тыс.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
MySQL Spotting Performance Problems
19:18
Просмотров 10 тыс.
MySQL Composite Index Best Practices
16:07
Просмотров 17 тыс.
Massively Speed-Up SQL Queries with Indexes
14:42
Просмотров 9 тыс.
Скучнее iPhone еще не было!
10:48
Просмотров 582 тыс.
Умный обзор умного iPhone 16 / 16 Pro
21:21