TTL Indexes in mongoDb | Explain TTL indexes behaviour and restrictions | Part - 1

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 11

  • @vasurangpariya8492
    @vasurangpariya8492 3 роки тому

    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

  • @vaibhavvaidya8715
    @vaibhavvaidya8715 4 роки тому

    Understood the TTL very well, make for incremental backup also. It would be helpful

    • @SmartyTechFizz
      @SmartyTechFizz  4 роки тому

      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!!!

  • @vasurangpariya8492
    @vasurangpariya8492 3 роки тому

    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 )

    • @SmartyTechFizz
      @SmartyTechFizz  3 роки тому +1

      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.

  • @Prince-yz1tc
    @Prince-yz1tc 3 роки тому

    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

    • @SmartyTechFizz
      @SmartyTechFizz  3 роки тому

      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

    • @IamZaxs
      @IamZaxs 2 роки тому

      Hi Prince how you have solved this issue? I have the same problem

  • @krishnareddy9814
    @krishnareddy9814 4 роки тому

    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

  • @Adhithyan3333
    @Adhithyan3333 4 роки тому

    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.

    • @SmartyTechFizz
      @SmartyTechFizz  4 роки тому +1

      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.