From: Oleg Broytman Date: Sun, 20 Dec 2015 21:25:41 +0000 (+0300) Subject: VACUUM Genre table after importing X-Git-Tag: 0.0.3~13 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=711b094b0eb5a6804fceffe72c4d8c700d789cf2;p=m_librarian.git VACUUM Genre table after importing --- diff --git a/m_librarian/glst.py b/m_librarian/glst.py index 257d321..cd2b8c9 100755 --- a/m_librarian/glst.py +++ b/m_librarian/glst.py @@ -46,6 +46,7 @@ def _import_data(): os.path.join(ml_dir, 'data', 'genres_fb2.glst')) old_nonfb2, new_nonfb2 = import_glst_file( os.path.join(ml_dir, 'data', 'genres_nonfb2.glst')) + sqlhub.processConnection.query("VACUUM %s" % Genre.sqlmeta.table) return old_fb2 + old_nonfb2, new_fb2 + new_nonfb2