After find many videos on youtube i found this video and i will watch complete series best video on mongodb on youtube. please cover indexes and all other things useing mongodb compass if possible
Sure, I'll always look up to my viewer's needs. Also, don't forget see the second part (for its implementation ) :- ua-cam.com/video/Bu9na_e1-5w/v-deo.html Keep Watching!!! Keep Learning!!!
i have one question we have to create index at once or add create indexing line in code ?? i am using mongodb in php so i have to write line that create index in my .php file( that line of code runs multipletime )
Hi Vasu, It is always recommended to create an index one by one especially when you are having a large amount of data. As index creation may cost high CPU utilization and memory usage. So, when you are creating an index, be sure of the amount of load your servers can take.
I am following the same process but my document is getting deleted after 1 minute, even I have mentioned custom time there. How to solve this? I am using Mongoose
Hi Adhityan, Yes, you can do so by using the TLL index, If you will see the next part, I have implemented the same thing but yes it had1-2 records. But those records should have the field on which the TTL index is created. For deleting millions it will take time but for sure it will delete. Suggesting you to watch the second it will help you to understand more about its implementation and behavior. If you don't have the indexed field on those records then you can usually use the delete command with a query using _id field. Hoping it will help you, if not you can mail me at smartytechfizz@gmail.com for more details.
After find many videos on youtube i found this video and i will watch complete series best video on mongodb on youtube. please cover indexes and all other things useing mongodb compass if possible
Understood the TTL very well, make for incremental backup also. It would be helpful
Sure, I'll always look up to my viewer's needs.
Also, don't forget see the second part (for its implementation ) :- ua-cam.com/video/Bu9na_e1-5w/v-deo.html
Keep Watching!!! Keep Learning!!!
i have one question we have to create index at once or add create indexing line in code ?? i am using mongodb in php so i have to write line that create index in my .php file( that line of code runs multipletime )
Hi Vasu,
It is always recommended to create an index one by one especially when you are having a large amount of data. As index creation may cost high CPU utilization and memory usage.
So, when you are creating an index, be sure of the amount of load your servers can take.
I am following the same process but my document is getting deleted after 1 minute, even I have mentioned custom time there. How to solve this?
I am using Mongoose
Hi Prince,
Please watch the next part of the video where I have explained and implemented it.
ua-cam.com/video/Bu9na_e1-5w/v-deo.html
Hi Prince how you have solved this issue? I have the same problem
Nice video and good information 👍 madam. Keep doing more videos of Mongodb...
And if possible try to make a full video of describing ops manager
Can we delete the documents for certain period(1milllion records) let's say 6months which is stored for long time? Can we delete this alone.
Hi Adhityan,
Yes, you can do so by using the TLL index, If you will see the next part, I have implemented the same thing but yes it had1-2 records.
But those records should have the field on which the TTL index is created. For deleting millions it will take time but for sure it will delete. Suggesting you to watch the second it will help you to understand more about its implementation and behavior.
If you don't have the indexed field on those records then you can usually use the delete command with a query using _id field.
Hoping it will help you, if not you can mail me at smartytechfizz@gmail.com for more details.