Which of the following best explains why query optimization reduces execution time in a database?
Think about how databases avoid unnecessary work.
Query optimization finds the best way to run a query by using indexes and efficient joins, which reduces the data scanned and speeds up execution.
Which technique is commonly used by query optimizers to reduce execution time?
Think about how databases find data quickly.
Indexes allow the database to find rows quickly without scanning entire tables, which reduces execution time.
Consider a query joining three tables: A, B, and C. How does changing the join order affect execution time?
Think about how intermediate results affect processing.
Choosing the right join order can minimize the size of intermediate results, reducing the amount of data processed and speeding up execution.
Which statement correctly compares execution plans of a query with and without optimization?
Consider how optimization changes data access methods.
Optimized plans typically use indexes and avoid full table scans, reducing data processed and execution time.
Why does query optimization focus on reducing disk input/output (I/O) operations to lower execution time?
Think about the speed difference between disk and memory.
Disk operations are slower than memory operations. Optimizers reduce disk I/O to avoid waiting for slow data reads, thus lowering execution time.