Тёмный

MongoDB Indexes - The Recipe behind Fast Query - How to Create Indexes and the B-Tree Data Structure 

Cognitive Programmer
Подписаться 28 тыс.
Просмотров 57 тыс.
50% 1

Наука

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

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 116   
@ryanaiden
@ryanaiden 3 года назад
Good Sir you are an excellent teacher. Well done on this superb explanation. “Isn’t it cool?” Yes it is very cool! Thanks you for the video.
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your kind words..comments like these are my inspiration.. thanks again... 🙏🙏🙏 if you like my contents..please share the same with family and friends 🙏
@hackingguy
@hackingguy 3 года назад
Such a elegant explanation, Sir! I think you deserve more views, Try increasing camera and thumbnail quality, It will help you a lot!
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your kind words and thanks a lot for your valuable suggestion 🙏🙏🙏
@harshvardhanpurohit3396
@harshvardhanpurohit3396 3 года назад
I have an interview coming up and I needed someone to summarize indexing in Mongo for me and you've done it so concisely and smoothly ! Thank you so much for this. Even though your video is on the top of my searches I'm not sure why the views are less !!! :( Anyways keep posting great videos like this :)
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your kind and encouraging words. All the very best for your interview 🙏🙏🙏
@piyalibanik5153
@piyalibanik5153 2 года назад
Wow wonderfully explained... in simple clear language... thanks a lot 🙏
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thank you for your comment 🙏
@akashpundir908
@akashpundir908 3 года назад
That was a beautiful explanation of Indexes! Don't know why so less views, it's better than other videos on indexes.
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏 I do wonder myself about this but your comment made my day. Thanks again 🙏🙏🙏
@padmakarkasture2969
@padmakarkasture2969 2 года назад
explanation with live example ..so nice thanks
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏🙏🙏
@ShahanaBasheer
@ShahanaBasheer 5 месяцев назад
Excellent video...❤ fully understandable❤ thank you so much😊
@Cognitive-Programmer
@Cognitive-Programmer 5 месяцев назад
Thank you so much for your kind comment 🙏
@haouihamza9178
@haouihamza9178 2 года назад
Thanks for the video
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏
@tusharagrawal5458
@tusharagrawal5458 2 года назад
Great explanation
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏
@rishabhanda5903
@rishabhanda5903 Год назад
Concept is explained beautifully in great detail. Thanks for sharing knowledge
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thanks for your comment 🙏
@karanbobade5266
@karanbobade5266 2 года назад
good explaination
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏🙏🙏
@mdjawedalam722
@mdjawedalam722 9 месяцев назад
great explanation sir thanks may allah bless you
@Cognitive-Programmer
@Cognitive-Programmer 9 месяцев назад
Thank you so much for your comment 🙏
@alijunaid8160
@alijunaid8160 Год назад
beautifully explained sir! you are a great teacher, where ever you are you deserve a raise, best wishes from Pakistan
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thank you so much for your kind words 🙏
@anandagarwal291
@anandagarwal291 2 года назад
best video till date related to indexes . thanks a lot
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏
@shivangigupta8196
@shivangigupta8196 3 года назад
best explanation SIr thanks
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏
@gowth_am_m
@gowth_am_m Год назад
I am really appreciate your work and explanation.👏
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thank you so much for your comment 🙏
@kydang4530
@kydang4530 2 года назад
awesome
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏🙏🙏
@williamlopez8067
@williamlopez8067 2 года назад
Thank you Sir, your video help me a lot 👍
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏🙏🙏
@itsnagma77
@itsnagma77 3 года назад
Best explanation 🥰 Thank you sir
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏🙏🙏
@danieleirmishin368
@danieleirmishin368 2 года назад
Thank you, very clear explantion 😀
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks a lot for your comment 🙏
@exe.m1dn1ght
@exe.m1dn1ght Год назад
Thank you Sir you are a Great Master !
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thank you so much for your comment 🙏
@shashiranjan7451
@shashiranjan7451 3 года назад
very nice. thank you very much
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏
@dzlandis
@dzlandis 2 года назад
This is a great explanation which is super helpful! Thank you :)
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks a lot for your comment 🙏
@atangamathias5165
@atangamathias5165 2 года назад
very well explained
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thank for your comment 🙏
@TheMeepPlay
@TheMeepPlay Год назад
Excelent video! thanks so much for the explanation.
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thanks for your comment 🙏
@shreyashachoudhary480
@shreyashachoudhary480 Год назад
Epic
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thanks a lot 🙏
@YMMP940
@YMMP940 3 года назад
Thank you, this is really helpful !!
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏🙏🙏
@98f5
@98f5 5 дней назад
Is there some downside to using a unique string such as a hash of 2 values in the document as the _id rather than using mongos objectid type
@MdSiam-kw5ox
@MdSiam-kw5ox 3 года назад
Thanks a lot for the explanation. 👍
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏
@kamichikora6035
@kamichikora6035 2 года назад
Great video
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thank you 🙏
@mustaphag
@mustaphag 2 года назад
Excellent
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏
@jasonhuang4333
@jasonhuang4333 2 года назад
Very helpful!
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏🙏🙏
@hsiang-yehhwang2625
@hsiang-yehhwang2625 3 года назад
This is a great tutorial!! Thanks for the sharing!!
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏
@meickl
@meickl 2 года назад
Very well explained, thanks :)
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks for your comment 🙏
@keerthi4513
@keerthi4513 2 года назад
When the collection is indexed on "salary" and you query for a specific salary, how come "index keys examined" is always 1. Will there not be an index scan examining "some" of the index keys until the required salary is found? I would expect "index keys examined" to be > 1 for some of the case. But it never is. Why? How does MongoDB get to a specific salary in just 1 lookup? Even in your example at 16:23, MongoDB would have examined 3 index keys to get to salary 3 (as opposed to 1 as claimed by Explain Plan).
@tonyhart2744
@tonyhart2744 Год назад
because they store the indexes in memory adress format indexes is created to map the adress of memory that created, so dsnt need search already know memory adress and can always go straight to adress that already save
@tonyhart2744
@tonyhart2744 Год назад
dnt look at the data as UTF-8 format, they store that on binary format so even 1 character and length difference can mean a lot, look at C programming lang destructure String and you will be surprise
@SimplyPaaruz
@SimplyPaaruz 2 года назад
Hi , I have a doubt , how to index an array field inside a collection ?
@sujith5441
@sujith5441 Год назад
very clear😊
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Thanks for your comment 🙏
@benmarshall5109
@benmarshall5109 3 года назад
thank you
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏
@rakeshravig
@rakeshravig 3 года назад
Is there have any option for Indexing mongodb with django in pycharm
@isi1044
@isi1044 2 года назад
amazing
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thank you 🙏
@rezwanmahmud3363
@rezwanmahmud3363 Год назад
Thanks a lot
@Cognitive-Programmer
@Cognitive-Programmer Год назад
thanks for your comment 🙏
@techocean6372
@techocean6372 2 года назад
Sir you explained in next level
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thank you so much 🙏
@kornelijussliubauskas8299
@kornelijussliubauskas8299 2 года назад
Its so confusing for me to understand, when we create an index data structure with desired indexed field, how can it instantly return an result if the entity in that "index data structure" is not the only one and it should still have to be search but way more efficiently due to the sorting that helps in searching by binary search algo if I understand this correctly, only then it maps to the corresponding result to the real data structure in heap or something.. where am i wrong?
@mystic_monk55
@mystic_monk55 2 года назад
thank you sir
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks a lot for your comment 🙏🙏🙏
@kunalsharma166
@kunalsharma166 3 года назад
sir you are 🔥🔥🔥🔥best
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your kind appreciation 🙏🙏🙏
@Alphfirm
@Alphfirm 3 года назад
thanks
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏🙏🙏
@swadhinpanigrahi9717
@swadhinpanigrahi9717 3 года назад
sir thanks you so much this video is made my day
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks a lot for your comment 🙏🙏🙏
@rafaelsantos236
@rafaelsantos236 3 года назад
Thanks for the class!
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏🙏🙏
@1989atul
@1989atul 2 года назад
how to optimize, if we have lot index in mongodb legacy code. I need to unwanted remove indexes
@Melody-xb2nh
@Melody-xb2nh 2 года назад
I have an app in which user create their own post and each post stored in form of document now if the need is like insertion order should not be in ascending or descending order. It should be in random order. can we achieve this in mongodb?
@sujith5441
@sujith5441 Год назад
Can a query use multiple indexes(non-compound)? When I ran a query, it was only using one index even though all the query fields were indexed. And mongodb was also doing in-memory sorting (my sort field is also indexed in proper sort order).
@mayankagarwal6300
@mayankagarwal6300 3 года назад
Very nice explanation have you uploaded the another video on index also.
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
No sir no other video is available on this topic ..🙏🙏🙏
@arpitanand6534
@arpitanand6534 3 года назад
video was very useful but please please fix your microphone!!!!
@abhishekvaishnav
@abhishekvaishnav 3 года назад
Thanks for the video, but can you please provide link to the video you created right after this one?
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Sure thanks for your comment.. I will update when the other video is available 🙏🙏
@abhishekvaishnav
@abhishekvaishnav 3 года назад
@@Cognitive-Programmer Awesome, Thanks!
@_Gunjan
@_Gunjan 3 года назад
TypeError: Product.createIndex is not a function. i am getting this type error in node js .pleasse help me!!!!
@AnshumanKumar007
@AnshumanKumar007 3 года назад
Indexes are special data structures [1] that store a small portion of the collection's data set in an easy to traverse form. The data structure used is a B Tree. This is from the documentation. How does that work exactly?
@AnshumanKumar007
@AnshumanKumar007 3 года назад
The B Tree part makes sense when using the index. However, if I use another field as an index, it doesn’t work as well, does it?
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment.. I am not sure that I understand your query but I believe when you create a new index a btree is created.. hope it helps..thanks
@nands4410
@nands4410 3 года назад
Hi sir 9:26 in which video you talk about different options there sir
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Hi Thanks for your comment I have not created the videos yet. Will do sometime in future Sorry about that T hanks🙏🙏🙏
@sujith5441
@sujith5441 Год назад
Is it necessary to add indexes for documents with only 2-3 fields?
@Cognitive-Programmer
@Cognitive-Programmer Год назад
Indexes are necessary for faster lookup, irrespective of number of fields
@staryun2671
@staryun2671 3 года назад
good!!!
@Cognitive-Programmer
@Cognitive-Programmer 3 года назад
Thanks for your comment 🙏🙏🙏
@Nadiow613
@Nadiow613 3 года назад
does this mean the salary field should always be unique?
Год назад
How do I use the index in a querie? My queries are like this: db.getCollection('table1').aggregate([{ $project: { field1: 1, field2: 1, field3: 1 } }]). How do I use the index on this querie?
@mayurmendhe5979
@mayurmendhe5979 2 года назад
great explanation sir
@Cognitive-Programmer
@Cognitive-Programmer 2 года назад
Thanks a lot 🙏
Далее
MongoDB Compound Index and Indexing
9:18
Просмотров 18 тыс.
Учёные из Тринидад и Тобаго
00:23
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 236 тыс.
Mongodb Text Index | Full Text Search in MongoDB
11:19
MongoDB Schema Design Best Practices
50:39
Просмотров 171 тыс.
Database Sharding and Partitioning
23:53
Просмотров 88 тыс.
Lookup in Mongodb aggregation
9:47
Просмотров 21 тыс.
How do indexes make databases read faster?
23:25
Просмотров 67 тыс.
Geolocation Search in MongoDB
9:49
Просмотров 10 тыс.
Data Modeling with MongoDB
34:56
Просмотров 109 тыс.
Скучнее iPhone еще не было!
10:48
Просмотров 614 тыс.