MongoDB Tutorial for Beginners 12 - MongoDB Indexing

preview_player
Показать описание
In this video I am going to show you How and why we use Indexing in MongoDB
In this Tutorial we will learn. How to install MongoDB, How to create new collections that store documents, You'll learn about the most common and used MongoDB shell commands to manage your documents.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

MongoDB - Advanced Indexing. Indexing with MongoDB. Indexes — Doctrine MongoDB. Optimizing MongoDB Compound Indexes
Searches related to mongodb indexing. mongodb indexing example. elasticsearch mongodb. mongodb indices. mongodb indexed field
mongodb performance. mongodb array. elasticsearch index. mongoosejs rebuild index
Рекомендации по теме
Комментарии
Автор

Highly recommend this Tutorial for the beginner. Basic concepts well covered in short amount of time.

larryelswick
Автор

Deprecated since version 3.0: db.collection.ensureIndex() has been replaced by db.collection.createIndex().

SauravSahu
Автор

Wow, didn't know about this. I was experiencing too much delay with half million records. Now it can find documents very quickly. Thanks much.

brazenbull
Автор

I'm really appreciating this series. Very clear-cut answers and very thorough explanations. 💯

MuhsinunChowdhury
Автор

this code reduced my execution time for records 22 minutes to 0.5 minutes thank you for this tutorial

ramakrishnapolumuru
Автор

Ultimate explanation. Thanks a ton Bro.

vishnukarthikreddy
Автор

You can use .limit(10).find() in studio 3T

adamadamski
Автор

What about when a new Record is inserted in your table, do you need to rebuild the indexing ?

nikitpanchal
Автор

0:41 thats why my query took long. I got 15 Mil documents. I m trying this rn.

wassilchoujaa
Автор

You explained very well! I am new to this and I have a doubt, I already have an existing collection to which I can use this : value}) command, but what if at later stage I have to add new rows into my collection, will I have to again run this command?

gauravlotey
Автор

What about indexes, where the keys are not unique? For example index of "name" in this example could map to the subset of the collection. Is something like that possible in mongodb?

michakowalski
Автор

yes but when i am suppose to run code ensureIndex in real time, anytime if i run this code, its going to slow the process anyway...?

PriyankaGupta-muyv
Автор

Hi,
I want to try this on my own. Where can i get the data for it?

mrinmayshekhar
Автор

sir I have one thought but by default student_id is started with zero so it is also a index or not

sudhanshunautiyal
Автор

ensureIndex now deprecated use db.collection.createIndex()

rossgeography
Автор

Would have been better if you would have shown the execution time using explain command

parthmittal
Автор

nice tutorial i try this on my system query execution is fast in small range but for wide range query execution is still slow. can you tell me solution for this. for example i run

this query is executing slow please tell me solution for this

NIKHILPARIHARBESTINTHEWORLD