Great speed improvement can be gained by using explicit transactions around multiple inserts. Reference: http://stackoverflow.com/questions/4719836/python-and-sqlite3-adding-thousands-of-rows
(self)
| 93 | raise SqlmapGenericException(errMsg) |
| 94 | |
| 95 | def beginTransaction(self): |
| 96 | """ |
| 97 | Great speed improvement can be gained by using explicit transactions around multiple inserts. |
| 98 | Reference: http://stackoverflow.com/questions/4719836/python-and-sqlite3-adding-thousands-of-rows |
| 99 | """ |
| 100 | self.execute('BEGIN TRANSACTION') |
| 101 | |
| 102 | def endTransaction(self): |
| 103 | self.execute('END TRANSACTION') |