Skip to main content

2019 | OriginalPaper | Buchkapitel

16. Understand SQL Performance with Algorithm Analysis

verfasst von : Jon Heller

Erschienen in: Pro Oracle SQL Development

Verlag: Apress

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Solving Oracle SQL performance issues is the pinnacle of SQL development. Performance tuning requires a combination of all the skills previously discussed in this book. We need to understand the development process (to know why problems happened and weren’t caught sooner), advanced features (to find alternative ways to implement code), and programming styles (in order to understand the code and rewrite it into something better).

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
This book uses the word “steps” to refer to the work performed by algorithms. Traditionally, that value is named “operations.” But Oracle execution plans already prominently use the word “operation,” so it would be confusing if I used the standard name. This chapter isn’t a mathematical proof, so it doesn’t matter if our terminology is nonstandard.
 
2
See this Stack Overflow answer, where I try and fail to create a useful constant-time index using hash clusters: https://stackoverflow.com/questions/32071259/constant-time-index-for-string-column-on-oracle-database
 
3
Amdahl’s law is not a worst-case run time complexity. But the function is important for understanding performance and worth discussing here.
 
4
If we set the SQL_ID parameter to the top-level PL/SQL statement, DBMS_SQLTUNE.REPORT_SQL_MONITOR will generate an activity graph for all child SQL statements.
 
5
See my Stack Overflow answer here for more details: https://stackoverflow.com/q/43131204/409172 .
 
6
See my answer here for tests comparing sort-merge with hash: https://stackoverflow.com/a/8548454/409172 . When available, hash joins are always faster.
 
7
Oracle uses an algorithm called HyperLogLog for distinct count approximations.
 
Metadaten
Titel
Understand SQL Performance with Algorithm Analysis
verfasst von
Jon Heller
Copyright-Jahr
2019
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-4517-0_16