中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

12.7 Database Systems: Structure of the Query Optimizer

1. These are only some of the many query-processing strategies used in database systems.

2. Most systems only implement a few strategies.

3. Some systems make a heuristic guess of a good strategy, in order to minimize the number of strategies to be considered.

4. Then the optimizer considers every possible strategy, but quits as soon as it determines that the cost is greater than the best previously considered strategy.

5. To simplify the strategy selection task, a query may be split into several sub-queries.

6. This simplifies strategy selection and permits recognition of common sub-queries (no need to compute them twice).

7. Examination of a query for common subqueries and the estimation of the cost of a large number of strategies impose a substantial overhead on query processing.

8. However, this is usually more than o set by savings at query execution time.

9. Therefore, most commercial systems include relatively sophisticated optimizers.

Database System Structure:

Reply

The content of this field is kept private and will not be shown publicly.
  • Use <!--pagebreak--> to create page breaks.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <!--pagebreak--> <img> <br> <table> <tr> <td> <tbody> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.