Revision 3270
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/csv2db | ||
---|---|---|
120 | 120 |
row = map(strings.to_unicode, row) |
121 | 121 |
row.insert(0, sql.default) # row_num is autogen |
122 | 122 |
util.list_set_length(row, cols_ct) # truncate extra cols |
123 |
sql.insert(db, table, row, log_level=5) |
|
123 |
sql.insert(db, table, row, cacheable=False, log_level=5)
|
|
124 | 124 |
finally: |
125 | 125 |
line_in.close() # also closes proc.stdout |
126 | 126 |
proc.wait() |
Also available in: Unified diff
csv2db: Don't cache per-row INSERT queries because this bloats the cache (there aren't repeated identical INSERTs that shouldn't be re-run like in row-based import)