<?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: Performance with SQLite in Adobe AIR</title>
	<atom:link href="http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/</link>
	<description>web development goodness</description>
	<lastBuildDate>Fri, 12 Mar 2010 04:31:05 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Larry</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-3353</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Tue, 28 Jul 2009 15:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-3353</guid>
		<description>@David - I am developing a desktop application using Adobe Air and Flex 3.  On the backend I have a SQL database that&#039;s populated by a DTS package.  Currently I am using .Net to create a Web Service and pull that into Flex via WSDL.  Sometimes I need to pull datasets that are 500-600k records and I see performance degradation...taking as long as 30 minutes to complete.  I&#039;ve heard of SQLLite being populated from other dataset creating persistent data and increased performance.  Do you know how this is done?  I am open to other ideas as well to increase performance.</description>
		<content:encoded><![CDATA[<p>@David &#8211; I am developing a desktop application using Adobe Air and Flex 3.  On the backend I have a SQL database that&#8217;s populated by a DTS package.  Currently I am using .Net to create a Web Service and pull that into Flex via WSDL.  Sometimes I need to pull datasets that are 500-600k records and I see performance degradation&#8230;taking as long as 30 minutes to complete.  I&#8217;ve heard of SQLLite being populated from other dataset creating persistent data and increased performance.  Do you know how this is done?  I am open to other ideas as well to increase performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tucker</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2894</link>
		<dc:creator>David Tucker</dc:creator>
		<pubDate>Sat, 14 Mar 2009 14:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2894</guid>
		<description>@DK - Thanks for the research on this.  I am sure you are already bringing this up to the AIR team - and I will do the same.  I feel that this is a pretty high priority item in overall grand scheme of things.  We&#039;ll see what gets implemented for the next version of AIR.</description>
		<content:encoded><![CDATA[<p>@DK &#8211; Thanks for the research on this.  I am sure you are already bringing this up to the AIR team &#8211; and I will do the same.  I feel that this is a pretty high priority item in overall grand scheme of things.  We&#8217;ll see what gets implemented for the next version of AIR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas Knudsen</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2880</link>
		<dc:creator>Douglas Knudsen</dc:creator>
		<pubDate>Sat, 07 Mar 2009 22:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2880</guid>
		<description>http://books.google.com/books?id=QoxUx8GOjKMC&amp;pg=PT39&amp;lpg=PT39&amp;dq=transaction+asychronous+sqlite&amp;source=bl&amp;ots=EtnpX22RvN&amp;sig=VVqz6SVFy-eWhbywTHKM-h4T27U&amp;hl=en&amp;ei=4PKySYOyOoqhtwfOl_TEBw&amp;sa=X&amp;oi=book_result&amp;resnum=6&amp;ct=result

Take a gander at that ugly URL.  Appears asynch transactions are supported via a PRAGMA tweak, but AIR does not support PRAGMA tweaks.  Off to the wish list....

DK</description>
		<content:encoded><![CDATA[<p><a href="http://books.google.com/books?id=QoxUx8GOjKMC&amp;pg=PT39&amp;lpg=PT39&amp;dq=transaction+asychronous+sqlite&amp;source=bl&amp;ots=EtnpX22RvN&amp;sig=VVqz6SVFy-eWhbywTHKM-h4T27U&amp;hl=en&amp;ei=4PKySYOyOoqhtwfOl_TEBw&amp;sa=X&amp;oi=book_result&amp;resnum=6&amp;ct=result" rel="nofollow">http://books.google.com/books?id=QoxUx8GOjKMC&amp;pg=PT39&amp;lpg=PT39&amp;dq=transaction+asychronous+sqlite&amp;source=bl&amp;ots=EtnpX22RvN&amp;sig=VVqz6SVFy-eWhbywTHKM-h4T27U&amp;hl=en&amp;ei=4PKySYOyOoqhtwfOl_TEBw&amp;sa=X&amp;oi=book_result&amp;resnum=6&amp;ct=result</a></p>
<p>Take a gander at that ugly URL.  Appears asynch transactions are supported via a PRAGMA tweak, but AIR does not support PRAGMA tweaks.  Off to the wish list&#8230;.</p>
<p>DK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xu Cui</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2849</link>
		<dc:creator>Xu Cui</dc:creator>
		<pubDate>Mon, 23 Feb 2009 06:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2849</guid>
		<description>Hi, Henry,

Did you find a solution for Error 3105 (besides the synchronous solution)?</description>
		<content:encoded><![CDATA[<p>Hi, Henry,</p>
<p>Did you find a solution for Error 3105 (besides the synchronous solution)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riverbed application acceleration</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2711</link>
		<dc:creator>riverbed application acceleration</dc:creator>
		<pubDate>Tue, 02 Dec 2008 09:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2711</guid>
		<description>Bangor car dealers and realtors: It’ s a race to see who can rip you off the most.</description>
		<content:encoded><![CDATA[<p>Bangor car dealers and realtors: It’ s a race to see who can rip you off the most.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2033</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Mon, 14 Jul 2008 20:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2033</guid>
		<description>Hey David, thanks for your answer! I experimented a bit on transactions but wasn&#039;t able to make them work on an asynchronous connection, despite I cannot find anything about a restriction on using the begin/commit functions only on synchronous connections. Calling the commit function always caused the following error: &#039;Error #3105: Operation is only allowed if a connection has an open transaction&#039;, while calling the begin function didn&#039;t cause any trouble at all. Later I changed my connection mode to synchronous and executed all (&gt;7000 records) INSERT statements within one! transaction and it took around 3 to 4 seconds to populate the table with the data. Although I&#039;m happy to have found a solution for my performance problem (thanks a lot for the hint trying transactions!!!), I&#039;m a bit frustrated, cause now I have to change a lot of code. In asynchronous mode I didn&#039;t need to bother about executing statements parallel (and I made use of this quiet extensively), but now I even have to close the asynchronous connection to establish the synchronous one. Further more I have to disable all buttons, etc. to advert user interaction during import process. Best wishes! Henry</description>
		<content:encoded><![CDATA[<p>Hey David, thanks for your answer! I experimented a bit on transactions but wasn&#8217;t able to make them work on an asynchronous connection, despite I cannot find anything about a restriction on using the begin/commit functions only on synchronous connections. Calling the commit function always caused the following error: &#8216;Error #3105: Operation is only allowed if a connection has an open transaction&#8217;, while calling the begin function didn&#8217;t cause any trouble at all. Later I changed my connection mode to synchronous and executed all (&gt;7000 records) INSERT statements within one! transaction and it took around 3 to 4 seconds to populate the table with the data. Although I&#8217;m happy to have found a solution for my performance problem (thanks a lot for the hint trying transactions!!!), I&#8217;m a bit frustrated, cause now I have to change a lot of code. In asynchronous mode I didn&#8217;t need to bother about executing statements parallel (and I made use of this quiet extensively), but now I even have to close the asynchronous connection to establish the synchronous one. Further more I have to disable all buttons, etc. to advert user interaction during import process. Best wishes! Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tucker</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2028</link>
		<dc:creator>David Tucker</dc:creator>
		<pubDate>Mon, 14 Jul 2008 14:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2028</guid>
		<description>@Henry - I have heard of this problem before (I believe that it is worst on Mac&#039;s).  I did some checking and SQLite seems to perform batch inserts when these inserts are performed within a transaction.  I assume this should translate properly to AIR&#039;s implementation of SQLite.  I haven&#039;t tried this personally - but some posts suggest that this speeds up the process quite a bit.</description>
		<content:encoded><![CDATA[<p>@Henry &#8211; I have heard of this problem before (I believe that it is worst on Mac&#8217;s).  I did some checking and SQLite seems to perform batch inserts when these inserts are performed within a transaction.  I assume this should translate properly to AIR&#8217;s implementation of SQLite.  I haven&#8217;t tried this personally &#8211; but some posts suggest that this speeds up the process quite a bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-2026</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Sun, 13 Jul 2008 10:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-2026</guid>
		<description>Hey there, I have some performance problems in using INSERT statements within a flex air application I developed recently. This app reads a csv file (txt file with comma separated data) and puts the data into a db. Since SQLite does not support multiple row inserting within one statement, I use an recursive method to send INSERT statements for each row to the connection object. The result handler of the statement, which handles the SQLEvent.RESULT event, is called very fast (less than a second for about 7000 statements), but the handler dealing with the SQLUpdateEvent.INSERT event of the connection is fired only about 10 times a second, so it takes my app more than 10 minutes to write all my data to the db. This is inacceptable. Of course I&#039;m using async mode. Maybe you can help?! Thanks in advance. Best regards, Henry.</description>
		<content:encoded><![CDATA[<p>Hey there, I have some performance problems in using INSERT statements within a flex air application I developed recently. This app reads a csv file (txt file with comma separated data) and puts the data into a db. Since SQLite does not support multiple row inserting within one statement, I use an recursive method to send INSERT statements for each row to the connection object. The result handler of the statement, which handles the SQLEvent.RESULT event, is called very fast (less than a second for about 7000 statements), but the handler dealing with the SQLUpdateEvent.INSERT event of the connection is fired only about 10 times a second, so it takes my app more than 10 minutes to write all my data to the db. This is inacceptable. Of course I&#8217;m using async mode. Maybe you can help?! Thanks in advance. Best regards, Henry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tucker</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-1357</link>
		<dc:creator>David Tucker</dc:creator>
		<pubDate>Thu, 08 May 2008 18:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-1357</guid>
		<description>Not bad at all.  It&#039;s cool to see it perform that well on data sets that large!  It was a great move for Adobe to include an existing powerful solution like SQLite for AIR.</description>
		<content:encoded><![CDATA[<p>Not bad at all.  It&#8217;s cool to see it perform that well on data sets that large!  It was a great move for Adobe to include an existing powerful solution like SQLite for AIR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wabyick</title>
		<link>http://www.davidtucker.net/2008/04/18/performance-with-sqlite-in-adobe-air/comment-page-1/#comment-1355</link>
		<dc:creator>Daniel Wabyick</dc:creator>
		<pubDate>Thu, 08 May 2008 16:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidtucker.net/?p=175#comment-1355</guid>
		<description>The SQLite database is pretty damn fast. I was getting near instantaneous searching with databases that were ~100,000 records.  Somewhere around  800,000 - 1,000,000 records you start losing performance, waiting a few seconds for a search.   Still, not bad eh?</description>
		<content:encoded><![CDATA[<p>The SQLite database is pretty damn fast. I was getting near instantaneous searching with databases that were ~100,000 records.  Somewhere around  800,000 &#8211; 1,000,000 records you start losing performance, waiting a few seconds for a search.   Still, not bad eh?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
