<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using custom functions with SQLAlchemy and SQLite</title>
	<atom:link href="http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/feed/" rel="self" type="application/rss+xml" />
	<link>http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/</link>
	<description>Random scribbling about programming, translation, and Japan</description>
	<lastBuildDate>Fri, 03 Feb 2012 09:05:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ryan Ginstrom</title>
		<link>http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/comment-page-1/#comment-267</link>
		<dc:creator>Ryan Ginstrom</dc:creator>
		<pubDate>Thu, 14 Aug 2008 13:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/#comment-267</guid>
		<description>I probably didn&#039;t explain the algorithm well enough. You&#039;ve got to iterate through each record in your glossary, retrieving all the records with gloss_score(query) gte minscore. SQLite iterates through lots of records much faster than pure Python.</description>
		<content:encoded><![CDATA[<p>I probably didn&#8217;t explain the algorithm well enough. You&#8217;ve got to iterate through each record in your glossary, retrieving all the records with gloss_score(query) gte minscore. SQLite iterates through lots of records much faster than pure Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir Helzer</title>
		<link>http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/comment-page-1/#comment-268</link>
		<dc:creator>Amir Helzer</dc:creator>
		<pubDate>Thu, 14 Aug 2008 11:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/#comment-268</guid>
		<description>I probably didn&#039;t understand your original algorithm. What I meant is that if there&#039;s a long array and you&#039;re implicitly searching it (like array.count()), you&#039;re getting execution time that&#039;s linear to the array&#039;s size.</description>
		<content:encoded><![CDATA[<p>I probably didn&#8217;t understand your original algorithm. What I meant is that if there&#8217;s a long array and you&#8217;re implicitly searching it (like array.count()), you&#8217;re getting execution time that&#8217;s linear to the array&#8217;s size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Ginstrom</title>
		<link>http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/comment-page-1/#comment-266</link>
		<dc:creator>Ryan Ginstrom</dc:creator>
		<pubDate>Wed, 13 Aug 2008 03:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/#comment-266</guid>
		<description>@Amir

I&#039;m not sure whether a dictionary would gain anything, because this is an iteration problem, not a search problem. You&#039;ve still got to iterate through every entry in your database, because your search query is new each time. The dictionary would speed things up if you could leverage the hash function.</description>
		<content:encoded><![CDATA[<p>@Amir</p>
<p>I&#8217;m not sure whether a dictionary would gain anything, because this is an iteration problem, not a search problem. You&#8217;ve still got to iterate through every entry in your database, because your search query is new each time. The dictionary would speed things up if you could leverage the hash function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir Helzer</title>
		<link>http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/comment-page-1/#comment-265</link>
		<dc:creator>Amir Helzer</dc:creator>
		<pubDate>Tue, 12 Aug 2008 14:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://ginstrom.com/scribbles/2008/08/10/using-custom-functions-with-sqlalchemy-and-sqlite/#comment-265</guid>
		<description>Hi Ryan,

Searched through Python arrays will take order(n) time, no matter what you do. Psyco will not help at that at all.

I like your SQLAlchemy solution. Just for fun, if you compare its performance against a Python dictionary (instead of array) or the same size, you&#039;ll see completely different results.

Searching through a dictionary takes order(log-n) time. Inserting to the dictionary would be slower - but not a killer.

Amir</description>
		<content:encoded><![CDATA[<p>Hi Ryan,</p>
<p>Searched through Python arrays will take order(n) time, no matter what you do. Psyco will not help at that at all.</p>
<p>I like your SQLAlchemy solution. Just for fun, if you compare its performance against a Python dictionary (instead of array) or the same size, you&#8217;ll see completely different results.</p>
<p>Searching through a dictionary takes order(log-n) time. Inserting to the dictionary would be slower &#8211; but not a killer.</p>
<p>Amir</p>
]]></content:encoded>
	</item>
</channel>
</rss>

