GNOME Bugzilla – Bug 636459
Slots table grows without limit when using sql backend
Last modified: 2018-06-29 22:48:53 UTC
Elwood Hunt <elwood.hunt@gmail.com> writes: > I am using version 2.3.16 with MySQL as the database. For backups, I will > often use MySQL Administrator to export the entire schema to an SQL DDL > file. I recently noticed that the size of my backup file grew from ~ 800K > to ~ 2.8MB after adding a budget for one month (I have maybe 25 expense > accounts). I also noticed that it was the slots table that grew so much > (several thousand additional rows). Is this normal or did something go > wrong? This is due to the fact that slots_save() in src/backends/sql/gnc-slots-sql.c doesn't update existing slots entries, it just inserts a new entry.
Committed r19908, which recursively deletes contained slots.
Elwood reports the change fixes the problem.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=636459. Please update any external references or bookmarks.