Revision 2974
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1436 | 1436 |
{row_num_col: sql_gen.join_same_not_null})] |
1437 | 1437 |
insert_into_pkeys(pkey_joins, pkeys_names) |
1438 | 1438 |
|
1439 |
if not db.debug_temp: |
|
1440 |
log_debug('Emptying unneeded temp tables to free up memory') |
|
1441 |
truncate(db, insert_out_pkeys) |
|
1442 |
truncate(db, insert_in_pkeys) |
|
1439 |
empty_temp(db, [insert_out_pkeys, insert_in_pkeys]) |
|
1443 | 1440 |
|
1444 | 1441 |
db.log_debug('Adding pkey on pkeys table to enable fast joins', level=2.5) |
1445 | 1442 |
add_pkey(db, into) |
... | ... | |
1453 | 1450 |
|
1454 | 1451 |
assert table_row_count(db, into) == table_row_count(db, in_table) |
1455 | 1452 |
|
1456 |
if not db.debug_temp: |
|
1457 |
log_debug('Emptying unneeded temp tables to free up memory') |
|
1458 |
truncate(db, in_table) |
|
1453 |
empty_temp(db, in_table) |
|
1459 | 1454 |
|
1460 | 1455 |
srcs = [] |
1461 | 1456 |
if is_func: srcs = sql_gen.cols_srcs(in_cols) |
Also available in: Unified diff
sql.py: put_table(): Use new empty_temp()