Revision 3258
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
484 | 484 |
log_ignore_excs = tuple(log_ignore_excs) |
485 | 485 |
debug_msg_ref = [None] |
486 | 486 |
|
487 |
if db.debug and is_explainable(query): |
|
488 |
query += '\n'+sql_gen.esc_comment(' EXPLAIN:\n'+explain(db, query)) |
|
489 |
|
|
487 | 490 |
try: |
488 | 491 |
try: |
489 | 492 |
def run(): return db.run_query(query, cacheable, log_level, |
Also available in: Unified diff
sql.py: run_query(): EXPLAIN all explainable queries before they are run, to provide query plans for later profiling and index analysis. At verbosity 3+, this also effectively allows the user to see what query is being run before it's executed.