Vacuum Database to Speedup Firefox

| Posted by watashii | Filed under Software

vacuum_firefox

Firefox performance can be improved by defragmenting the internal SQLite database.  This can be done by running a vacuum command within Firefox, as explained in Mozilla Links.   The process are as follows:

1) Open Tools > Error Console (or Press Ctrl + Shift + J)

2) In the Code text box, paste the following (in one single line)

Components.classes["@mozilla.org/browser/nav-history-service;1"].
getService(Components.interfaces.nsPIPlacesDatabase).
DBConnection.executeSimpleSQL("VACUUM"); 

Note:  Make sure the double-quotes are normal quotes and not slanted quotes

3) Press Evaluate.  Firefox will freeze for a few seconds while the database is being defragmented.

A handier add-on extension is also available to perform this action.

Tags: , ,