Clean Your SQLite Databases to Speed up Firefox

Error Console in Firefox

Did you know you can tidy Firefox up, with VACUUM? No, I do not mean that thing you use to clean your carpets.  Here is a way to VACUUM your places database from within the browser.

Here are the steps you need to take:

1. Open the Firefox tools menu and click on error console.
2. Paste the following command into the code box as a single line:
Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM");
3. Hit the “Enter” key or click the evaluate button.

The user interface will freeze for a moment, but after you are done, your SQLite databases should be less fragmented than before, leading to a leaner and meaner Firefox browsing experience.

Thanks goes to Mozilla developer Jeremy Orem for this fantastic tip!

BonusVacuum Places Improved is an add-on that will do this for you automatically.

  • k

    Wow, it did help! FF no longer freezes when I start typing an address. Thanks.

  • k

    Wow, it did help! FF no longer freezes when I start typing an address. Thanks.

  • Eremita

    Mitch,

    I understand the Pros to doing this, but what are the possible drawbacks — maybe none? Thanks.

  • Eremita

    Mitch,

    I understand the Pros to doing this, but what are the possible drawbacks — maybe none? Thanks.

  • Walter Earnshaw

    This is the first time I have heard about FF and SQLite databases in the same breath. Can I possibly toddle along without this? If not, could you produce an article re FF n SQLite databases syuitable for beginners and wannabees?

  • Walter Earnshaw

    This is the first time I have heard about FF and SQLite databases in the same breath. Can I possibly toddle along without this? If not, could you produce an article re FF n SQLite databases syuitable for beginners and wannabees?

  • JBaruch
  • JBaruch
  • http://www.3sulblog.com/2010/01/08/ripulite-il-database-sqlite-per-velocizzare-firefox/ Ripulite il Database SQLite per velocizzare Firefox – 3sulBlog

    [...] [firefoxfacts] Ti piace questo post? Allora [...]

  • http://hillcountrypower.com/index.php?action=profile;u=295;sa=summary Saturnina Anagnostou

    You have got wonderful posts there, Appreciate it, I find this is truly insightful. I have really enjoyed reading your posts. Purely marvelous what you have accomplished here.

  • http://www.shopoo.co.uk/find-out-how-to-opt-for-the-most-excellent-flash-templates-for-your-online-business/ Ellena Clayborne

    You have fantastic posts here, Kudos, I find this is fairly engaging. I have really enjoyed browsing your content. Just enlightening what you have here.

  • http://saconkling.com Darnell Urwin

    omg…taylor lautner is so hot!

  • http://ambush.tv/index.php/member/1725 Craig Ruzicka

    I really believe the information covered within the post is very useful. I’ve been completing a preliminary research regarding the subject matter and your website definitely helped with quite a few problems I had. I’m working on an essay and school assignment for my English class and actively looking at quite a few information sites to study.

blog comments powered by Disqus