On 5/12/15, Zaumseil Ren? <RZaumseil at kkg.ch> wrote: > Here some last test data > > PRAGMA synchronous = 1; > PRAGMA auto_vacuum = FULL; > PRAGMA journal_mode = WAL; > PRAGMA wal_autocheckpoint = 10000; > PRAGMA cache_size = 10000; > > A database ca. 4GB with 2200 tables takes 3 minutes for a "delete * from > table" over all tables.
I think that operation will go MUCH faster if you (1) turn off auto_vacuum, (2) use journal_mode=DELETE, and (3) put all of the DELETE operations inside a single transaction. > > > HTH > Rene > > Kernkraftwerk Goesgen-Daeniken AG > CH-4658 Daeniken, Switzerland > > Diese Nachricht (inkl. Anhaenge) beinhaltet moeglicherweise vertrauliche > oder gesetzlich geschuetzte Daten oder Informationen. Zum Empfang derselben > ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie > diese Nachricht irrtuemlicherweise erreicht hat, sind Sie hoeflich gebeten, > diese unter Ausschluss jeder Reproduktion zu vernichten und den Absender > umgehend zu benachrichtigen. Besten Dank. > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp drh at sqlite.org