Powered by OpenAIRE graph
Found an issue? Give us feedback
https://doi.org/10.1...arrow_drop_down
https://doi.org/10.1016/b978-0...
Part of book or chapter of book . 2005 . Peer-reviewed
Data sources: Crossref
https://doi.org/10.1016/b978-0...
Part of book or chapter of book . 2011 . Peer-reviewed
Data sources: Crossref
versions View all 2 versions
addClaim

This Research product is the result of merged Research products in OpenAIRE.

You have already added 0 works in your ORCID record related to the merged Research product.

Optimizing SQL

Authors: Joe Celko;

Optimizing SQL

Abstract

Publisher Summary This chapter presents tips and suggestions on optimizing SQL. The query optimizers depend on the underlying architecture and are simply too different for many universal rules. A rule-based optimizer parses a query and executes it in the order in which it was written, by doing some reorganization of the query into an equivalent form using some syntax rules. A cost-based optimizer looks at both the query and the statistical data about secondary storage, shares the current data in cache by using sessions, and then decides on the best way to execute the query. These decisions are based on factors such as the access methods used, the data to be brought into main storage, and the types of sorting technique used. In disk systems, there are four basic methods of getting to data that include table scans or sequential reads of all the rows in the table, access via some kind of tree index, hashing, and bit vector indexes. Writing simple search conditions is suggested as optimizers have trouble using an index with complicated expressions or function calls. As string expressions can be expensive with the LIKE predicate, the use of “%” should be avoided in favor of “_” in the pattern string. Providing extra information can also be helpful as the optimizer will be able to find an improved execution plan with more information in hand.

  • BIP!
    Impact byBIP!
    citations
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
citations
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Upload OA version
Are you the author? Do you have the OA version of this publication?