Project

General

Profile

« Previous | Next » 

Revision 3159

sql.py: empty_temp(): Empty temp tables even in debug_temp mode, so that it can be seen which tables have been garbage collected and disk space leaks can be detected. This will not affect the external re-runnability of slow queries in debug_temp mode, as long as the user aborts the debug_temp import while the slow query is still running.

View differences:

lib/sql.py
1251 1251
    return run_query(db, 'TRUNCATE '+table.to_str(db)+' CASCADE', **kw_args)
1252 1252

  
1253 1253
def empty_temp(db, tables):
1254
    if db.debug_temp: return # leave temp tables there for debugging
1255 1254
    tables = lists.mk_seq(tables)
1256 1255
    for table in tables: truncate(db, table, log_level=3)
1257 1256

  

Also available in: Unified diff