RDBMS Basics Practice Test: Query Processing and Optimization — Flashcards | Databases | FatSkills

RDBMS Basics Practice Test: Query Processing and Optimization — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz questions on query processing, join operations, expressions evaluation, relational expressions, evaluation plans and materialized views.

Query processing and optimization are essential steps to ensure the efficiency and reliability of a relational database management system (RDBMS). Query processing is the process of translating a user query into an executable form that can be used to retrieve results from a database. Query optimization is the process of constructing a query evaluation plan that minimizes the cost of query evaluation. 

Query processing and optimization can improve query performance by: Improving performance, Reducing resources consumed, Enhancing the quality of query results, and Ensuring query results are consistent. 

Some common methods for improving query performance include: Indexing, Partitioning, Caching, and Tuning. 

Query optimization can be performed in two ways:
Heuristic optimization:
Reorders individual operations based on heuristic rules
Cost based optimization: Estimates the costs of executing several different execution plans to systematically reduce the overall cost of executing the query 

The flow of a query processing involves two steps:
Compilation time:
Parses and translates the query, breaks it into tokens, and checks for correctness
Query optimization: Evaluates multiple query execution plans and chooses the best one 

Query optimizers represent query plans as a tree of "plan nodes". Each node encapsulates a single operation that is required to execute the query. The nodes are arranged as a tree, in which intermediate results flow from the bottom of the tree to the top.

Related Tests: 

MySQL Basics Practice Test: Query Optimization

DBMS Basics Practice Test: Query Processing Techniques

1 of 70 Ready
Which of the following are steps in query processing?
All of these
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password