While answering a user question the other day on identifying files that
span tape boundaries, I extended one of the indexes on the File table:


MySQL localhost> alter table File drop index PathId, add index PathId
(PathId, FilenameId, FileIndex);


This change has MASSIVELY sped up the 'purge volume' operation.  Purges
that used to take four or five minutes now complete in 20 to 30 seconds.


Just FYI.


-- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to