Тёмный
No video :(

Don't hide your database indexes! 

PlanetScale
Подписаться 38 тыс.
Просмотров 13 тыс.
50% 1

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

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@COLAMAroro
@COLAMAroro Год назад
Wow, I'm really glad RU-vid recommended me this channel. This is really well explained, with great examples, even for people (like me) who aren't DBA experts, just devs
@clo4
@clo4 Год назад
Very good explanation! Just a meta-note: timestamps in the description have to start at 0:00 to show in the player
@PlanetScale
@PlanetScale Год назад
Doh, thank you!
@SentinelaCosmica
@SentinelaCosmica 24 дня назад
outstanding sir! your database skills are impressive.
@joe5head
@joe5head Год назад
Great analogy and communicated superbly. Love it!
@ucretsiztakipci6612
@ucretsiztakipci6612 Год назад
One of the best internet teach is around again. Let's like the video, watch and learn something new today.
@PlanetScale
@PlanetScale Год назад
Glad you enjoyed it!
@alexaneals8194
@alexaneals8194 10 месяцев назад
I wanted to add this on a separate comment: sometimes when running explain on a query, you will still get a table scan instead of an index scan because the table does not contain enough rows to make sense for the database to do an index scan. Some databases allow you to "force" the use of an index, but that may lead to performance degradation. Always, test whether using the index increases the query's performance.
@alexaneals8194
@alexaneals8194 10 месяцев назад
This is good advice not just for MySql, but SQL Server also. Although, for your opening comments, don't underestimate the brain. It processes far more information than databases can, it just does it subconsciously. If we had to consciously calculate with a computer everything our brain processes, we would fry it's circuits.
@serhiivoichyk
@serhiivoichyk 9 месяцев назад
Really great content, the example on 7:19 is the most interesting one. I've tried it by myself and it really works. However, does it always work? I mean, is there a chance that another database/db engine might execute 'AND' conditions in a less optimal way ignoring the fact that it's beneficial to get results for "circle B" first?
@tuval012
@tuval012 5 месяцев назад
Very good! Very good content very good explanation very good performance.
@IB0Mber
@IB0Mber Год назад
This is awesome!
@s1mplelulu
@s1mplelulu Год назад
OMG this is the best I have seen in year
@Formula7Driver
@Formula7Driver 9 месяцев назад
I have an even better, real-life example of this. So the goal was to determine which cab drivers were inside of 3km radius of a certain point, and the app was calculating the distance for every cab driver to that point, and there were a lot of them. So then I figured out that every cab driver was inside a square of 6x6km. Based on the latitude, I calculated the width and height of that square in degrees, and applied that to the latitude and longitude columns of the taxi drivers table
@JohnRoux
@JohnRoux 11 месяцев назад
Would be even better to show the explain analyze for these, to show the filtering from circle b Great stuff though!
@byronleigh80
@byronleigh80 Год назад
Brilliant
@ahmedmunna2416
@ahmedmunna2416 10 месяцев назад
Great videos A A ron 💗💗💗
@PlanetScale
@PlanetScale 10 месяцев назад
🥰
@MakeKasprzak
@MakeKasprzak Год назад
Great tip
@Aalii6
@Aalii6 9 месяцев назад
👍👍👍
@guitarhero69
@guitarhero69 Год назад
i cant create a free database in planet scale . it asks me for my card info and it wont charge for anything until and unless i choose the pro options but my card always gets declined
@dhirajnaik2119
@dhirajnaik2119 Год назад
So if I have index created on first_name and I use LOWER(first_name) for comparison in a query. Will the index created on first_name not be used??
@markusflosbach1852
@markusflosbach1852 Год назад
It will a) not be used b) depending on your Collation (Case Insensitive?) Lower() might not even be neccessary :-)
@dealloc
@dealloc 10 месяцев назад
There's a video on that, too. "MySQL case insensitive searching (don't use LOWER)"
@Fanaro
@Fanaro Год назад
Do a video on books about MySQL!
@PlanetScale
@PlanetScale Год назад
That's a good idea actually... Thank you!
@Fanaro
@Fanaro Год назад
@@PlanetScale A beginner to expert roadmap of books would be a great Aaron Francis video I believe.
@SaiyanJin85
@SaiyanJin85 6 месяцев назад
ok, that was 10/10... again..
@user-kr6lp7rm5y
@user-kr6lp7rm5y Год назад
What app is used in the video?
@PlanetScale
@PlanetScale Год назад
Table Plus!
@medilies
@medilies Год назад
Why not force index?
@RaicaBogdan
@RaicaBogdan 9 месяцев назад
I won the prize! 👍 😄
@elliejohnson2786
@elliejohnson2786 Год назад
What are "Indexes"?
@PlanetScale
@PlanetScale Год назад
We actually have a whole section available in our free MySQL for Developers course! This would explain indexes best: planetscale.com/learn/courses/mysql-for-developers/indexes/introduction-to-indexes
@Yorgarazgreece
@Yorgarazgreece Год назад
Think of a phone catalog In a phone catalog you have a list of names along with a list of phone numbers that match said names. If you want to search in that catalog efficiently, you'd use the pagination feature. So if you want to find what's George's phone number for example, you'd go straight to G page. In a database the index in this scenario would be this pagination feature (letters A-Z that relate to contact's names). You could in theory say that this pagination is actually an index on contact name column. Obviously this is a gross oversimplification but it should help you understand why they need to exist and how much the performance increases because of their existence.
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 10 месяцев назад
Although your content is awesome, but I am always reluctant to click on the video because of the long duration I always feel like your 10 mins videos can be encapsulated in 2 shorts... It does not matter if I am alone, but may be you should try to put up a poll or something to see if I am not alone.
@PlanetScale
@PlanetScale 10 месяцев назад
Thanks for the idea! We've been experimenting and the longer videos do a whole lot better unfortunately. We'll keep experimenting though
@GrantGryczan
@GrantGryczan 10 месяцев назад
I like the longer, more in-depth videos personally, as I'm new to database development. Although I could imagine agreeing and wanting to skip the fluff if I were already experienced.
@alexander2576
@alexander2576 10 месяцев назад
Long videos from Aaron are very enjoyable. He shares his happy inner state along with the creatively and funnily wrapped content. So it is not only about tips and tricks, but much more. And I noticed, this way the knowledge also absorbs deeper 😅
Далее
You don't need NoSQL (use MySQL)
31:26
Просмотров 74 тыс.
Easy database indexing strategies
36:03
Просмотров 24 тыс.
Only I get to bully my sister 😤
00:27
Просмотров 17 млн
Я ДОСТРОИЛ ЗАВОД - Satisfactory
19:13
Просмотров 167 тыс.
Avaz Oxun - 10 yillik yubiley konsert dasturi 2023
2:52:33
Pagination in MySQL - offset vs. cursor
13:20
Просмотров 57 тыс.
RAND is too slow (in MySQL)
17:32
Просмотров 13 тыс.
Faster geospatial queries in MySQL
13:46
Просмотров 20 тыс.
Faster than a regular database index
13:39
Просмотров 19 тыс.
Your database will break in 2038 (or sooner)
8:34
Просмотров 16 тыс.
Database Indexing for Dumb Developers
15:59
Просмотров 53 тыс.
Storing feature flags as JSON (with indexing)
14:10
Просмотров 22 тыс.
Make your database queries 1000 times faster!
11:36
Просмотров 49 тыс.
The effect of Random UUID on database performance
18:51
Working with time series data in MySQL
20:35
Просмотров 21 тыс.