diff options
author | Matthias H <apoc@sixserv.org> | 2014-02-24 06:11:16 +0100 |
---|---|---|
committer | Matthias H <apoc@sixserv.org> | 2014-02-24 06:11:16 +0100 |
commit | f0d77a23a406fc1a04d82c356799bb1df93159ec (patch) | |
tree | dc78e3ad20a74af1ffd24b5e95e673930c5fa76f /lib | |
parent | c66f748ad4f4e00f58fa5679f33d254f5c1f6922 (diff) |
[registry] optimize at every restart/rescan
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/registry.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/registry.rb b/lib/rbot/registry.rb index 6c18df21..799e69ee 100644 --- a/lib/rbot/registry.rb +++ b/lib/rbot/registry.rb @@ -73,7 +73,9 @@ class Registry # (the configured one) accessor implementation, we can just assume # it to be the correct accessor to use. cls = AbstractAccessor.get_impl.first - cls.new(File.join(path, 'registry_' + @format, filename.downcase)) + db = cls.new(File.join(path, 'registry_' + @format, filename.downcase)) + db.optimize + db end # Helper method that will return a list of supported registry formats. |