<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Too Far Afield &#187; SQL</title>
	<atom:link href="http://blog.nachtarbeiter.net/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nachtarbeiter.net</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 05:41:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Reignite your Firefox [Update]</title>
		<link>http://blog.nachtarbeiter.net/2009/05/02/reignite-your-firefox/</link>
		<comments>http://blog.nachtarbeiter.net/2009/05/02/reignite-your-firefox/#comments</comments>
		<pubDate>Sat, 02 May 2009 11:05:42 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://blog.nachtarbeiter.net/?p=754</guid>
		<description><![CDATA[I&#8217;ve just read a great tip on Firefox performance by Nick Anderson that I wanted to share with you: Newer versions of Firefox store all its data in so-called SQLite databases. SQLite is an ACID compliant relational database engine that consists of one flat file and is meant for storing data of single-user applications. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just read <a href="http://www.cmdln.org/2009/04/29/speed-up-your-firefox-ever-so-slightly/">a great tip on <cite>Firefox</cite> performance</a> by <a href="http://www.cmdln.org/">Nick Anderson</a> that I wanted to share with you: Newer versions of <cite>Firefox</cite> store all its data in so-called <a href="http://www.sqlite.org/"><cite>SQLite</cite></a> databases. <cite>SQLite</cite> is an <abbr title="Atomicity, Consistency, Isolation, Durability">ACID</abbr> compliant relational database engine that consists of one flat file and is meant for storing data of single-user applications. The problem with these <cite>SQLite</cite> database files is that they get cluttered over time. Luckily, there&#8217;s a statement to clean up an <cite>SQLite</cite> database: The <a href="http://www.sqlite.org/lang_vacuum.html"><code>VACUUM</code></a> statement. Just close all <cite>Firefox</cite> instances, <strong>backup your profile</strong> and run the following shell code:</p>
<ol class="code">
<li><code>for i in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $i VACUUM;done;</code></li>
</ol>
<p>Voilà. Depending on how long you use your profile, the performance increase will be really significant. And don&#8217;t think of filing a bug report. There are already <a href="https://bugzilla.mozilla.org/buglist.cgi?query_format=specific&#038;order=relevance+desc&#038;bug_status=__open__&#038;content=vacuum">plenty of it</a>.</p>
<p><strong>Update</strong>: <a href="http://blog.mozilla.com/oremj">Jeremy Orem</a> recently posted on <a href="http://blog.mozilla.com/oremj/2009/08/20/speedup-firefox-with-vacuum/">how you can clean your <cite>SQLite</cite> databases without shutting down the browser</a>:</p>
<ol>
<li>Select <cite>Error Console</cite> from the <cite>Tools</cite> menu.</li>
<li>Paste the following in the <cite>Code</cite> text-box:<br />
<code>Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM")</code></li>
<li>Press Enter</li>
</ol>
<p>The user interface may freeze for a second while the vacuuming takes place.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nachtarbeiter.net/2009/05/02/reignite-your-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

