mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
vacuum the db on close
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5004 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
23ee9c3391
commit
fedc9fda9f
@ -1071,7 +1071,9 @@ pgendSessionEnd (PGBackend *be)
|
||||
|
||||
if (!be->sessionGuid) return;
|
||||
|
||||
/* vacuuming w/ analyze can improve performance 20% */
|
||||
p = be->buff; *p=0;
|
||||
p = stpcpy (p, "VACUUM ANALYZE;\n");
|
||||
p = stpcpy (p, "UPDATE gncSession SET time_off='NOW' "
|
||||
"WHERE sessionGuid='");
|
||||
p = stpcpy (p, be->session_guid_str);
|
||||
|
Loading…
Reference in New Issue
Block a user