<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: SQLite again</title>
	<atom:link href="http://blog.xcski.com/2006/01/31/sqlite-again/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.xcski.com/2006/01/31/sqlite-again</link>
	<description>Everything I used to bore people on newsgroups and mailing lists with, now in one inconvenient place.</description>
	<pubDate>Fri, 22 Aug 2008 00:16:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Joe D</title>
		<link>http://blog.xcski.com/2006/01/31/sqlite-again#comment-1613</link>
		<dc:creator>Joe D</dc:creator>
		<pubDate>Tue, 31 Jan 2006 12:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://xcski.com/blogs/pt/2006/01/31/sqlite-again#comment-1613</guid>
		<description>I found out about SQLite a year or so ago, and have been keeping it in mind should I ever have a project that needs it.  So while I haven't used it, I've been reading up on it.  The FAQ at sqlite.org says that it locks the whole database file whenever anything needs to update it, which is what you're seeing.

It's 6:30AM, so I'm a little fuzzy and probably haven't thought things through.

You could try is to cache the results somewhere.  Generate a hash from the parameters, and then use that as the key, or something.  I don't know how many duplicates you generate, so it may not save you anything.  You'd obviously have to clear the cache on a database reload.

You could also create a temporary database for each generation, populate it, and then delete it when it's done.</description>
		<content:encoded><![CDATA[<p>I found out about SQLite a year or so ago, and have been keeping it in mind should I ever have a project that needs it.  So while I haven&#8217;t used it, I&#8217;ve been reading up on it.  The FAQ at sqlite.org says that it locks the whole database file whenever anything needs to update it, which is what you&#8217;re seeing.</p>
<p>It&#8217;s 6:30AM, so I&#8217;m a little fuzzy and probably haven&#8217;t thought things through.</p>
<p>You could try is to cache the results somewhere.  Generate a hash from the parameters, and then use that as the key, or something.  I don&#8217;t know how many duplicates you generate, so it may not save you anything.  You&#8217;d obviously have to clear the cache on a database reload.</p>
<p>You could also create a temporary database for each generation, populate it, and then delete it when it&#8217;s done.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
