SQL indexing best practices | How to make your database FASTER!

  Рет қаралды 95,745

CockroachDB

CockroachDB

Күн бұрын

Пікірлер: 32
@drugofsweetness
@drugofsweetness 5 ай бұрын
"When in doubt, explain" is what i loved about this video.
@TakamuraOG
@TakamuraOG 17 күн бұрын
Dude I appreciate this video, I had two days to try to understand via Copilot, but I was able to catch, that the index sped up the analysis. I thought that I would have another column with numbers, and I needed to use those numbers to filter the search. Now is clear how it works. Thanks a lot!!!
@jeswer9
@jeswer9 Жыл бұрын
Someone that talks sense. Great info!
@electrolyteorb
@electrolyteorb Жыл бұрын
Great video 🎉 you are just teaching Not only for CRDB but Sql dbs in general 👍
@MagicOfDark
@MagicOfDark Жыл бұрын
I had table without index took 18 hours to run, with index took like 6 minutes. Table had millions of entries. Also made some changes to my code, but that only shaved like 1-2 hours off.
@Shujahaidergaming
@Shujahaidergaming 7 ай бұрын
How it happens . It a alot of margin 6 hours and 6 minutes. How much data in your table ?
@marktaft
@marktaft Ай бұрын
Underrated video. Thank you.
@gregmaier5784
@gregmaier5784 2 ай бұрын
Beautifully explained, thank you!
@AnatolyLeonov
@AnatolyLeonov Жыл бұрын
Thanks! This was a nice enlightening explanation!
@cockroachdb
@cockroachdb Жыл бұрын
🤟
@ExcelTutorials1
@ExcelTutorials1 Жыл бұрын
Very helpful, thank you!
@cockroachdb
@cockroachdb Жыл бұрын
Thanks for watching!
@WhiteSiroi
@WhiteSiroi Жыл бұрын
thank you very much, very helpful
@umabharathyts1998
@umabharathyts1998 4 ай бұрын
Thanks !
@hasanmougharbel8030
@hasanmougharbel8030 2 жыл бұрын
Hello man, God bless your efforts. I have a simple enquiry as a new sql learner. How does the term b-tree relate to the index function in sql? Thanks for taking care of this.
@tomatte99
@tomatte99 Ай бұрын
I think the indexing is for the database be able to do a binary search, that is probably done using a binary search tree, that is a type of b-tree
@abhay6276
@abhay6276 6 ай бұрын
You didn't mention which index you created ? Clustered or non Clustered?😊
@Deltacasper
@Deltacasper Жыл бұрын
Would it not have been more efficient to create a separate table for the city column with additional information about the city such as region and country and reference that by Id and then index based on that instead and additionally have less redundant data or how?
@michealraspberry4138
@michealraspberry4138 Жыл бұрын
correct. for data that repeat, what you suggested is the right solution. however, this is an example situation and they are trying to explain how indices are used.
@jenweatherwax7113
@jenweatherwax7113 9 ай бұрын
How many indexes should one add? And how do you know which columns to choose?
@MatheusLB2009
@MatheusLB2009 5 ай бұрын
Maybe too late but indexes have to be unique (otherwise there is conflict) and preferably small as he said in the video. And if there is none, having a table mostly sorted by a specific column, like DateTime, naturally speeds up the query
@chrisder1814
@chrisder1814 2 ай бұрын
hello I would like to do automation with tools of our codes in my WordPress database but I don't know if these ideas are good and feasible, could you help me understand
@teja6124
@teja6124 Жыл бұрын
Hi Sir, I have a table that consist of 16mil record and it will increase, weekly basis. to retrieve this table in Powerbi it is taking more time get this data from large SQL table. can you suggest any changes on the existing table ? current table doesn't have any indexes.
@maryadebimpe9424
@maryadebimpe9424 9 ай бұрын
Alter the table syntax an add the index
@victoriasingveena441
@victoriasingveena441 11 ай бұрын
Cool
@cockroachdb
@cockroachdb 11 ай бұрын
We couldn't agree more.
@Nodsaibot
@Nodsaibot Жыл бұрын
oooooooor create a JSON with the cached results :D
@DavidYoo-m7z
@DavidYoo-m7z Жыл бұрын
Love this video HATE the name cockroach, disgusting
@rainymornings
@rainymornings 11 ай бұрын
I felt the same but honestly aren't they just insects like every other? I feel sad for the little critters now lol
@DavidYoo-m7z
@DavidYoo-m7z 11 ай бұрын
@@rainymornings Appreciate your sentiment, still HATE roaches.
@samcheung3511
@samcheung3511 2 ай бұрын
Thanks🥲
@cockroachdb
@cockroachdb 2 ай бұрын
Glad we could help!
Making your queries FAST-err! // SELECT STAR
1:02:30
CockroachDB
Рет қаралды 891
Handling Environment Variables in a Rust Program
32:52
cudidotdev
Рет қаралды 522
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 2,7 МЛН
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 74 М.
SQL Indexes - Definition, Examples, and Tips
12:14
Database Star
Рет қаралды 82 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 204 М.
Internals of indexing in SQL Server: All you need to know!!!
32:50
How do indexes make databases read faster?
23:25
Arpit Bhayani
Рет қаралды 73 М.
7 Must-know Strategies to Scale Your Database
8:42
ByteByteGo
Рет қаралды 130 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
5 Ways to Improve Your SQL Queries
10:04
Kahan Data Solutions
Рет қаралды 94 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН