• "composite index, index merge की तुलना में 10 गुना तेज़ है
    Postgres में यह अंतर MySQL से भी बड़ा है,
    क्योंकि Postgres, index merge वाले queries के लिए index-only scan को support नहीं करता"
  • SELECT count(*) FROM table WHERE int1000 = 1 AND int100 = 1 query के लिए
    या तो (int1000, int100) composite index बनाया जा सकता है, या int1000/int100 पर अलग-अलग index बनाकर उन्हें merge किया जा सकता है
  • 1 करोड़ records को random तरीके से generate करने के बाद test किया गया
    • composite index : 5ms
    • index merge : MySQL में 30~40ms, Postgres में 30~90ms
  • यदि आप Postgres इस्तेमाल कर रहे हैं, तो index merge feature का उपयोग करते समय सावधानी रखें

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.