Query Processing and Optimization - algorithms for query processing, query optimization - Question Bank
1. What is the main drawback of exhaustive query optimization?
2. Which of the following is a common type of join optimization?
3. What is 'cost-based optimization'?
4. What is the goal of 'rule-based optimization'?
5. What is 'predicate pushdown'?
6. Which of these statistics are crucial for estimating the cost of a selection operation?
7. What is the role of statistics in query optimization?
8. What is 'view materialization' in query optimization?
9. Which of the following is an example of a 'physical' optimization choice?
10. What is a 'query block' or 'subquery' in the context of optimization?
11. Why is it generally better to apply selection operations as early as possible in a query plan?
12. Consider the relational algebra expression (R JOIN S) WHERE condition. Which is generally a better optimization strategy?
13. What is 'query pipelining'?
14. Which optimization technique involves executing parts of a query in parallel across multiple processors?
15. What is a 'semi-join' operation used for in distributed query processing?
16. Which of the following is a common challenge in distributed query optimization?
17. What is 'data localization' in the context of distributed query processing?
18. What is 'query decomposition' in query optimization?
19. When would a Hash Index be more beneficial than a B+ Tree Index?
20. What is the primary advantage of using a B+ Tree index for joins?
21. Which type of index is commonly used in relational databases for efficient range queries and ordered retrieval?
22. What is an 'index' in a database context?
23. Which of the following is a common data structure used to speed up selections and joins?
24. What is a 'Cartesian Product' (or Cross Join)?
25. Consider a query 'SELECT Name, Age FROM Students;'. Which operation does this primarily represent?
26. Consider a query 'SELECT * FROM Students WHERE GPA > 3.5;'. Which operation does this primarily represent?
27. What is the purpose of the 'selection' operation in relational algebra?
28. Which operation is used to reduce the number of columns in a query result?
29. What is the 'probe' phase in Hash Join?
30. In Hash Join, what is the 'build' phase?
31. What is the main advantage of Hash Join?
32. Which join algorithm is typically efficient when one relation is significantly smaller than the other?
33. When is Nested Loop Join most efficient?
34. What is the basic idea behind the Nested Loop Join algorithm?
35. Which join algorithm is generally efficient when both relations are sorted on the join attribute?
36. What does a 'join' operation typically do?
37. Which of the following is a common operation in relational algebra used in query processing?
38. In dynamic programming for query optimization, what is the principle of optimality?
39. What is the 'System R' style of query optimization?
40. Which of the following is a common algorithm used in query optimization?
41. What is a 'cost model' used for in query optimization?
42. Which type of query optimization aims to find the absolute best execution plan, even if it takes a long time?
43. What is a 'heuristic' in the context of query optimization?
44. Which of the following is a key factor considered during query optimization?
45. What is the primary function of the query optimization phase?
46. What is the output of the query parsing and translation phase?
47. Which component is responsible for transforming a high-level query language statement into an internal representation?
48. What is the purpose of the parsing phase in query processing?
49. Which of the following is NOT a phase of query processing?
50. What is the primary goal of query processing?