Question:
A _________________ index is one that satisfies all the columns requested in a query without having to look up further in the clustered index.
_________________ इंडेक्स वह है जो क्लस्टर्ड इंडेक्स में और लुकअप किए बिना क्वेरी में रिक्वेस्टेड सभी कॉलमों को संतुष्ट करता है।
Options:
- Clustered
- Non-clustered
- Covering
- B-tree
- क्लस्टर
- नॉन क्लस्टर्ड
- कवरिंंग
- बी-ट्री
Correct Answer: c)
Explanation:
Detailed Explanation:
The correct answer is c) Covering index (कवरिंग).
In database performance tuning, an index is called a Covering Index when it contains all the columns needed to satisfy a particular query:
- How it Works: A covering index includes all columns referenced in the query’s
SELECTlist,WHEREfiltering predicates,JOINconditions,GROUP BY, andORDER BYclauses. - Elimination of Key / Bookmark Lookups: In a standard non-clustered index, if a query requests a column not present in the index, the database engine must execute a secondary Key Lookup or RID Lookup into the clustered index or heap to retrieve the missing data. A covering index provides all requested columns directly from its leaf pages, completely eliminating expensive lookups.
- This yields major I/O reduction and dramatically accelerates query execution speed.
विस्तृत व्याख्या:
सही उत्तर c) कवरिंग (Covering Index) है।
डेटाबेस क्वेरी अनुकूलन (Query Optimization) में:
- कवरिंग इंडेक्स (Covering Index): एक ऐसा नॉन-क्लस्टर्ड इंडेक्स होता है जो किसी विशिष्ट SQL क्वेरी में मांगी गई सभी कॉलम (Fields) को स्वयं में समाहित रखता है। इसमें
SELECT,WHERE,JOIN,ORDER BYआदि में प्रयुक्त सभी कॉलम शामिल होते हैं। - लुकअप की समाप्ति: जब कोई इंडेक्स क्वेरी को पूरी तरह कवर कर लेता है, तो एसक्यूएल इंजन को डेटा खोजने के लिए बेस टेबल या क्लस्टर्ड इंडेक्स में अतिरिक्त Key Lookup (लुकअप) करने की आवश्यकता नहीं होती। सारा डेटा सीधे इंडेक्स के लीफ पेज से ही मिल जाता है।
- इससे डिस्क I/O की भारी बचत होती है और क्वेरी अत्यंत तीव्रता से निष्पादित होती है।