projects
/
id3fs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8722415
)
VACUUM when pruning DB
author
Ian Beckwith
<ianb@erislabs.net>
Thu, 7 Oct 2010 19:02:27 +0000
(20:02 +0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Thu, 7 Oct 2010 19:02:27 +0000
(20:02 +0100)
lib/ID3FS/DB.pm
patch
|
blob
|
history
diff --git
a/lib/ID3FS/DB.pm
b/lib/ID3FS/DB.pm
index
11429ac
..
9369fbf
100644
(file)
--- a/
lib/ID3FS/DB.pm
+++ b/
lib/ID3FS/DB.pm
@@
-812,6
+812,7
@@
sub remove_unused
LEFT JOIN files_x_tags ON files_x_tags.tags_id=tags.id
WHERE files_x_tags.files_id IS NULL);
+ VACUUM
EOT
print "SQL: $sql\n";
my @sql=split(/\n\n/, $sql);