Master MongoDB Indexing in One Video: Boost Your Database Performance Instantly!
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- 🟡 Get 1 to 1 coaching with me: topmate.io/eng...
🟡 Donate: paypal.me/engi...
🟡 Perks: www.youtube.co...
🔴 Discord: / discord
🔴 Twitch: / engineeringdigest
🔴 Personal TH-cam Channel: / @thevipulvats
🔴 Instagram: / thevipulvats
🔴 Twitter: / thevipulvats
🔴 LinkedIn: / thevipulvats
🔴 Website: engineeringdig...
🔴 Timestamps
Intro 0:00
Use this as sample data, it is not the same. But will do the work
db.teachers.insertMany([
{ "_id": 1, "name": "John Doe", "age": 35, "gender": "male" },
{ "_id": 2, "name": "Jane Smith", "age": 40, "gender": "female" },
{ "_id": 3, "name": "Michael Johnson", "age": 45, "gender": "male" },
{ "_id": 4, "name": "Emily Williams", "age": 30, "gender": "female" },
{ "_id": 5, "name": "Robert Brown", "age": 38, "gender": "male" },
{ "_id": 6, "name": "Emma Jones", "age": 33, "gender": "female" },
{ "_id": 7, "name": "William Davis", "age": 37, "gender": "male" },
{ "_id": 8, "name": "Olivia Miller", "age": 41, "gender": "female" },
{ "_id": 9, "name": "David Wilson", "age": 36, "gender": "male" },
{ "_id": 10, "name": "Sophia Moore", "age": 32, "gender": "female" },
{ "_id": 11, "name": "Richard Taylor", "age": 39, "gender": "male" },
{ "_id": 12, "name": "Isabella Anderson", "age": 43, "gender": "female" },
{ "_id": 13, "name": "Joseph Thomas", "age": 34, "gender": "male" },
{ "_id": 14, "name": "Mia Jackson", "age": 42, "gender": "female" },
{ "_id": 15, "name": "Charles White", "age": 36, "gender": "male" },
{ "_id": 16, "name": "Abigail Harris", "age": 31, "gender": "female" },
{ "_id": 17, "name": "Daniel Martin", "age": 44, "gender": "male" },
{ "_id": 18, "name": "Evelyn Thompson", "age": 38, "gender": "female" },
{ "_id": 19, "name": "Matthew Garcia", "age": 37, "gender": "male" },
{ "_id": 20, "name": "Sofia Martinez", "age": 35, "gender": "female" },
{ "_id": 21, "name": "Andrew Robinson", "age": 40, "gender": "male" },
{ "_id": 22, "name": "Grace Clark", "age": 33, "gender": "female" },
{ "_id": 23, "name": "Joshua Rodriguez", "age": 39, "gender": "male" },
{ "_id": 24, "name": "Avery Lewis", "age": 42, "gender": "female" },
{ "_id": 25, "name": "Christopher Lee", "age": 37, "gender": "male" },
{ "_id": 26, "name": "Chloe Walker", "age": 31, "gender": "female" },
{ "_id": 27, "name": "Kevin Hall", "age": 44, "gender": "male" },
{ "_id": 28, "name": "Zoey Allen", "age": 38, "gender": "female" },
{ "_id": 29, "name": "Brian Young", "age": 36, "gender": "male" },
{ "_id": 30, "name": "Harper King", "age": 34, "gender": "female" }
])
Words couldn't appreciate the information which you encapsulated in this short video in an engaging way. Thank you very much!
The best comprehensive video for indexing. Hats off to the person and the methodology he used to explain things.
Found this when i was searching for a good mongo indexing video. It was really explained well. Thanks , keep up the good work :)
Best teaching style ever. So happy that you utilised every second
Thank you! 😃
Nice session on indexing. Engineering Digest is complete package to learn Mongodb. Thank you so much to record sessions ❤
One of the best videos i have seen on indexing. Content was so interesting, that i didn't feel bored at all.
Thank you so much for creating these videos.
Wow, this video provides an amazing explanation of MongoDB concepts! 🙌 The way you've broken down and illustrated the key concepts makes it so much easier to grasp. Thanks for sharing this valuable knowledge with us. Keep up the great work! 👏
The first 3 minutes of explanation and an instant subscribe
but why is execution time is more when using index for 1st time
i have 40k docs and without index it is 30ms and with index for 1st time its 111ms but after 2nd time it is 0ms . and for new query again it is 111ms
sir bachpan m kon mongodb seekhta hai 😅
Vo apne bachpan ka bta rhe hai bro😂
Amazing video, Vipul.
You shared quite a great amount of knowledge in a short time & that too without promoting like and subscribe. You won't need it, people will do it themselves seeing your content. Much thanks!!
good job brother. beautifully explained!
I have no words to express , its amazing video for indexing , loved the explanation
Gajab padate ho and Gajab baaten b btate ho...kamaal ho aap🙂
Your Teaching Style is Amazing. 🔥🔥🔥🔥🔥🔥🔥🔥
Thanks a lot 😊
Subscribed within 5 mins of watch time, the audio quality is excellent and the content also
I liked the way you say "Koi dikkat vali baat nhi h"
Thank you for such clear explanation! You earned a subscriber!
linear search jo bachpan me padhte the was epic😅😄
The best mongo series, just wow
Its lovely..everybody makes it complicated..this is as simple as it can get
Thank you brother, it will be a huge help if you can share this course on LinkedIn.
@@EngineeringDigest yes sure..and i would like to ask u one thing...pls include antipatters as examples..like i was a frontend guy..and i struggled with how to design proper mongo schema for my app..nobody talks about real life examples.
I really appreciate your efforts, your tutorial make it so easy to understand mongodb
Please consider sharing feedback on LinkedIn. 🙏🏻
sure@@EngineeringDigest
Excellent Thanku so much bro. It helped me a lot better than mongodb university.❣❣
Best series of mongodb on TH-cam
It was really explained well.
The best tutorial so far!!
this is really amazing, So lets say if you have 1000000 entries in database. doing a linear search will take 1000000 operations because It will travel to each index to find but in case of Binary Search the total operation will be aroun 16! yes just 16 for n = 1000000 entries. for me It is wild to see how a simple algorithms like Binary search has such a huge effect on optimizing database operations.
sir thank you so much for this vedio (pura indexing topic clear hogya)
Bachpan me hum sort -1 / 1 krte the😜👏👏
Baja phad diye guru amazing knowledge
Please consider sharing feedback on LinkedIn. 🙏🏻
bachpan mai linear search ..is peak
:))
Awesome sir plz keep posting such learnings video
such an amazing video bhaiya, Thankyou so much!
Thank you so much. Great
I think what you said about expireAfterSeconds is wrong. After the time expires, documents itself gets deleted not the index. Correct me if I'm wrong
You are amazing. :)
Made this soo simple.
Fantastic mongo db tutorial ✨🔥
Please consider sharing feedback on LinkedIn. 🙏🏻
Please share the queries in the description
Awesome video Guru , Love this content
Thanks!! for the best tutorials.
You're welcome!
Great tutorial! Thank you.
good explaination loved it!!!!😍
very clear explanation, thank you.
heyy, i have a question.. If i use compound index with a partialFilterExpression.. then can i mention another field expression for the filter which is not a part of the index for the collection ?
AWSEOME !!
good stuff
bhaiya please long videos me timestamps rakhte jao! pls
data structure me bachpan me padte the linear search 🤣🤣sir ham abhi bhi bacche hi hai
awesome yrr phly app kaha thyyyy
Nice ❤
Very Nice sir ji, superb!!!
So nice of you
DAMN GOOD VIDEO
Nailed‼️
Beneficial, thanks for the video.
Just want to say that its is best. The explanation is great
Superb video sir ji ❤❤❤
Wow🎉🎉
Wow Jordar ❤
Great explanation ❤
Thank you so much
You're most welcome. I have a favour to ask. Can you share this playlist on LinkedIn. It would be huge help 🤝
@@EngineeringDigest definitely
Thanks bro really helpful 🙏
Thanks! 😊 Join my Insta fam: @thevipulvats
This is great!!!
Roses are red,
Violets are blue,
Title in English,
But Hindi's what you do.
Your thumbnails are tempting,
Your tags are on cue,
In the language of Shakespeare,
Yet you choose Bollywood's view.
Subscribers are clicking,
Not a clue what you spew,
The title's in English,
But, my friend, so should you!
time is precious, respect it.
Sir what type of project we can do by javascript and mongidb. Give a concept
Mazaa aagya sir🫡🫡
nice video, How to fetch data between two collection..like join in SQL please cover and waiting for aggregation
Ok coming soon
Sir clear ho gaya
Best content ❤
Good one bro
sir can you provide notes ?
Bachpan me linear search 😂😂😂 abhi to sikha bhiya pichle saal binary search
lol
Awesome
Amazing Video...
Thank you so much 😀
mongodb ka practice kaha kr skta hu?? koi achha website btaye
💖💖💖💖
Thanks! 😊 you can join our discord or Insta @thevipulvats.
nice
manna pare ga sirf collection leke itni dur a geye 😂
lol
bahut badhiya spelling hai gender ki 😂
Bro Pls share the sample data of this video
Please check pinned comment.
Great urdu !!
sir thodi der dheere se and bad me jor se mat bolo... same frequency me bolo please!!!
@00:19:00
bachpan mein
If I extract the result without using sort() "db.collection.find('age' : '10')", then should I get the result in sorted manner, as we have created index in asc order.
No, if you execute the query db.collection.find('age': '10') without using the sort() method explicitly, the results will not be sorted. Creating an index on a field in ascending order does not guarantee that the query results will be automatically sorted. The purpose of an index is to improve query performance by allowing the database to quickly locate the matching documents based on the indexed field.