MongoDB Compound Index and Indexing

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 37

  • @Pixelflames1
    @Pixelflames1 2 ปีที่แล้ว +1

    I'm so exited but i still have no idea how to implement it in my code or on my mongodb server through the terminal

  • @lalitbelwal7231
    @lalitbelwal7231 2 ปีที่แล้ว +2

    is there any video on composite indexing in case size is exceeding

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว

      No not yet on my channel..but I intend to talk more on topic of index in upcoming videos.. sorry about that 👍

    • @lalitbelwal7231
      @lalitbelwal7231 2 ปีที่แล้ว

      @@Cognitive-Programmer no problem I will be happy to see that in future as I am stuck already in that soup.

  • @msbasera
    @msbasera 2 ปีที่แล้ว +1

    Great Explaination Sir ❤️

  • @IdanBernard
    @IdanBernard 2 ปีที่แล้ว +1

    Great video, thank you so much!

  • @reyanshspeak2847
    @reyanshspeak2847 2 ปีที่แล้ว

    How to specify two custom indexes on two different fields in the compound autocompleted query?

  • @MahenderPratapSingh-c6f
    @MahenderPratapSingh-c6f ปีที่แล้ว

    hi, i have a question
    how can i used both direction sorting in compound index
    for example : i have compound index "active_1_name_1__id_1", name is used for sorting , i want to used name for ascending sorting as well as descending sorting

  • @koushikdugk007
    @koushikdugk007 2 ปีที่แล้ว

    Great video! Using mongoimport we have a param specifying the numinsertionworker for parallel insertion do we have a similar param in pymongo, if not do you suggest any ways that we could achieve parallel insertion using python?

  • @shreyashachoudhary480
    @shreyashachoudhary480 2 ปีที่แล้ว +1

    Loved it

  • @thirumurugand9287
    @thirumurugand9287 2 ปีที่แล้ว

    Most of the time 'FETCH' step execution time will be ~0. Shouldn't we look at Actual query execution time to see performance benefit after applying the indexes ?

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว

      Hi
      Thanks for your comment
      Yes, to properly evaluate the performance, it needs to be checked with large dataset

  • @prasadshivan79
    @prasadshivan79 2 ปีที่แล้ว

    Hello Sir, Is it possible to get indexStats using pymongo?

  • @lalitbelwal7231
    @lalitbelwal7231 2 ปีที่แล้ว +2

    easy explaination

  • @komalsingla6032
    @komalsingla6032 2 ปีที่แล้ว

    Sir, thank you for sharing this tutorial video. I need to ask one question -- There is one use case as how to modify index because migrating all data impacts performance. Please suggest some solutions.

    • @Cognitive-Programmer
      @Cognitive-Programmer  ปีที่แล้ว

      Thanks for your comment.
      I don't think I understood your question but let me try. You indexes are dynamic, every time you insert a new data, your index is modified to accommodate the fast search.
      Hope it helps
      Thank 🙏

  • @Vijay-Yarramsetty
    @Vijay-Yarramsetty ปีที่แล้ว

    audio quality is good in this video

  • @funnyclipz520
    @funnyclipz520 2 ปีที่แล้ว

    awesome explanation... can you share the mongodump in the description?

  • @arbazahmed7748
    @arbazahmed7748 ปีที่แล้ว

    Amazing,
    Sir I have a question which is confusing me a lot. I hope you'll fix it for sure...
    I have a collection with 30M documents. each document contains 4 keys and 4 values like (Bill_id, Amount, City, Tel).
    How should I create indexes ?
    Should I use 4(square) indexes? like 36 indexes ?

    • @fanzhang8823
      @fanzhang8823 11 หลายเดือนก่อน

      Just put keys and sorted field(s) into compound index, put exact march field(s) at first, then sorted filed(s) and ranch match field(s) into the index

  • @Pray4Tony
    @Pray4Tony ปีที่แล้ว +1

    Thank you

  • @nizarbouali5837
    @nizarbouali5837 8 หลายเดือนก่อน +1

    Thanks !!

  • @sujith5441
    @sujith5441 2 ปีที่แล้ว

    Compound Index size seems very large

  • @monireol
    @monireol 2 ปีที่แล้ว +1

    Thanks a lot

  • @iampiyush100
    @iampiyush100 2 ปีที่แล้ว

    Supposed if our document on 10th place they why mongodb search 10000 documents?

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว +1

      Thanks for your comment
      MongoDB doesn’t know if the document at the 10th place is the only document matching the criteria.. so it needs to search
      Hope it clarifies your question
      Thanks again 🙏

  • @monireol
    @monireol 2 ปีที่แล้ว +2

    Limit is 64