how to vacuum?

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Wolfman
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 26.06.2007, 13:34

how to vacuum?

Post by Wolfman »

hi,

i want to vacuum my sqlite database. i know there is a statement VACUUM for it. but if i exec this statement i get an error, because i use transaction connection. how can i solve this problem to vacuum my database? do i have to close the conn, set no transaction, reopen, vacuum, close conn, set transaction and reopen again?

best regards
wolfman
aducom
Zeos Dev Team
Zeos Dev Team
Posts: 67
Joined: 30.08.2005, 13:21

Post by aducom »

Appearantly. Other solution is to use the auto-vacuum pragma which is rather new. It's not possible to execute vacuum when a tranaction is open.
Post Reply