<?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>Surf Roots, Software Thoughts &#187; Databases</title>
	<atom:link href="http://alexlod.com/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexlod.com</link>
	<description>A blog by Alex Loddengaard</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:25:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SQLite3: Beware of Concurrency</title>
		<link>http://alexlod.com/2008/10/14/sqlite3-beware-of-concurrency/</link>
		<comments>http://alexlod.com/2008/10/14/sqlite3-beware-of-concurrency/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 17:15:49 +0000</pubDate>
		<dc:creator>Alex Loddengaard</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexloddengaard.com/?p=750</guid>
		<description><![CDATA[SQLite3 is a very lightweight implementation of a SQL database.  I&#8217;ve been using it in conjunction with Python on a single-threaded tool.  This morning I started refactoring my tool to have multi-process support, but I was interrupted by the following &#8230; <a href="http://alexlod.com/2008/10/14/sqlite3-beware-of-concurrency/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sqlite.org/">SQLite3</a> is a very lightweight implementation of a SQL database.  I&#8217;ve been using it in conjunction with Python on a single-threaded tool.  This morning I started refactoring my tool to have multi-process support, but I was interrupted by the following error:</p>
<blockquote><p>sqlite3.OperationalError: database is locked</p></blockquote>
<p>After reading through the SQLite3 documentation, I found that <a href="http://www.sqlite.org/lockingv3.html">SQLite3 does database-level locking</a> when performing write operations.  This means that all hope of parallelizing SQLite3 write operations is lost, because SQLite rejects a concurrent write attempt to the same database.</p>
<p>And I thought <a href="http://dev.mysql.com/">MySQL</a>&#8216;s table-level locking was bad (unless you&#8217;re using <a href="http://optimmysql.blogspot.com/2007/09/innodb-deadlock-next-key-locking.html">InnoDB</a>) &#8230;</p>
<p>Update: for the record, <a href="http://www.postgresql.org/">PostreSQL</a> does row-level locking.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlod.com/2008/10/14/sqlite3-beware-of-concurrency/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

