~/talk

The five-step guide to SQL tuning

Talkat Oracle CloudWorld 2022 · 2022-10-17..10-20· [databases]
links:none on file
slides:none on file

Five concrete steps: start by confirming the requirement and consider a cheaper data source (example: replacing a full scan of hundreds of millions of transactions with the customer modification timestamp solved the problem with zero cost), then find bad SQL using V$SQLSTATS not V$SQL, triage with hints and drill into plans using GATHER_PLAN_STATISTICS and DBMS_XPLAN (example showed optimizer estimating 25k rows vs 114k actual), use extended stats or SQL Plan Management to cure regressions.

AI-written summary · about

  1. 0:00Introduction to tuning
  2. 1:21The first rule of tuning
  3. 7:27Tuning user experience
  4. 8:49Identifying problematic SQL
  5. 10:54Validating the query
  6. 13:43Analyzing execution plans
  7. 17:27Triage with hints
  8. 20:04Permanent fixes and stats
  9. 22:24SQL plan management
  10. 24:53Conclusion and steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.