- बहुत से wildcard वाली string खोज को तेज़ी से प्रोसेस करने के लिए डिज़ाइन किया गया PostgreSQL-समर्पित Index Access Method (IAM)
pg_trgm की उन सीमाओं को पूरा करता है जहाँ अनावश्यक heap access और performance loss संरचनात्मक रूप से होते हैं
- अक्षरों और उनकी position के आधार पर Bitmap Position Index का उपयोग करके candidate results को memory के भीतर bitmap operations से सटीक रूप से filter करता है
- search results के लिए heap recheck की ज़रूरत नहीं होती, जिससे अनावश्यक random I/O हट जाता है
- string की आगे और पीछे दोनों positions को index करने वाली bidirectional (positive / negative) index structure के ज़रिए prefix, suffix, substring patterns को कुशलतापूर्वक प्रोसेस करता है
- case-insensitive खोज के लिए ILIKE-समर्पित index path को आंतरिक रूप से अलग रखकर accuracy और performance दोनों सुनिश्चित करता है
- केवल single column ही नहीं, बल्कि multi-column LIKE conditions को एक ही index से प्रोसेस करने के लिए डिज़ाइन किया गया
- हर column की pattern selectivity का विश्लेषण करके execution order को अपने-आप पुनर्व्यवस्थित करता है
%, _ के मिश्रण वाले जटिल patterns में भी false positive के बिना deterministic search results प्रदान करता है
- COUNT, EXISTS जैसी aggregate queries में भी अनावश्यक sorting को छोड़कर processing speed बेहतर करता है
- Roaring Bitmap(CRoaring) आधारित implementation, जो data density के अनुसार memory usage को अपने-आप optimize करता है
ORDER BY को सीधे support नहीं करता, लेकिन planner के साथ स्वाभाविक रूप से जुड़कर result set छोटा होने के बाद sorting होने देता है
- regular expressions, similarity search, locale-आधारित collation को support नहीं करता; इसके बजाय LIKE / ILIKE-विशेष performance पर केंद्रित design
अभी कोई टिप्पणी नहीं है.