91
GB
What are index statistics and why are they critical for query optimization?
IN
सूचकांक आँकड़े क्या हैं और वे क्वेरी अनुकूलन के लिए महत्वपूर्ण क्यों हैं?
A
Statistical information about index column value distribution (cardinality histograms null count average row size) that the query optimizer uses to estimate result sizes and costs for different execution plan choices - stale or inaccurate statistics lead to poor plan choices
सूचकांक स्तंभ मूल्य वितरण के बारे में सांख्यिकीय जानकारी (कार्डिनैलिटी हिस्टोग्राम शून्य गणना औसत पंक्ति आकार) जिसका उपयोग क्वेरी ऑप्टिमाइज़र विभिन्न निष्पादन योजना विकल्पों के लिए परिणाम आकार और लागत का अनुमान लगाने के लिए करता है - पुराने या गलत आँकड़े खराब योजना विकल्पों का कारण बनते हैं
B
The storage statistics for index pages
अनुक्रमणिका पृष्ठों के लिए भंडारण आँकड़े
C
The timing statistics for index lookup operations
इंडेक्स लुकअप ऑपरेशन के लिए समय आँकड़े
D
The count of distinct values in an index
किसी सूचकांक में भिन्न मानों की गिनती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Index statistics: the optimizer uses cardinality (distinct values), histograms (value distribution), null percentage, correlation (physical sort order vs. key order). Used to estimate: rows returned by predicate, join selectivity, cost of index scan vs. full scan. ANALYZE TABLE (MySQL) / ANALYZE (PostgreSQL) updates statistics.
व्याख्या (हिन्दी)
सूचकांक आँकड़े: ऑप्टिमाइज़र कार्डिनैलिटी (विशिष्ट मान), हिस्टोग्राम (मूल्य वितरण), शून्य प्रतिशत, सहसंबंध (भौतिक क्रम क्रम बनाम कुंजी क्रम) का उपयोग करता है। अनुमान लगाने के लिए उपयोग किया जाता है: विधेय द्वारा लौटाई गई पंक्तियाँ, चयनात्मकता में शामिल होना, सूचकांक स्कैन बनाम पूर्ण स्कैन की लागत। तालिका (MySQL) का विश्लेषण करें / (PostgreSQL) अद्यतन आँकड़ों का विश्लेषण करें।