<?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: SQLite for C# – Part 8 – Loading CSV/Pipe into SQLite via command line</title>
	<atom:link href="http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/</link>
	<description>Thoughts and ponderings on the technical world</description>
	<lastBuildDate>Fri, 06 Aug 2010 03:40:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Gareth</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-308</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 06 Aug 2010 03:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-308</guid>
		<description>Well I tried a quick test of this (rather that diving into the code!). My test was to generate a C# program to quickly create a 342Mb file consisting of 1 int, and 3 text fields in a CSV format. It generated 2,000,000 records for the test. This was then loaded using the &quot;.import&quot; approach outlined above and it ran fine (and quickly). It took approximately 20 seconds to generate a 421Mb SQLite DB and during this load the memory size of sqlite3 remained level and didn&#039;t increase during the load phase.

Hopefully this helps some, if you want my test files I can supply them - but on the surface there doesn&#039;t seem to be an issue here.

Gareth</description>
		<content:encoded><![CDATA[<p>Well I tried a quick test of this (rather that diving into the code!). My test was to generate a C# program to quickly create a 342Mb file consisting of 1 int, and 3 text fields in a CSV format. It generated 2,000,000 records for the test. This was then loaded using the &#8220;.import&#8221; approach outlined above and it ran fine (and quickly). It took approximately 20 seconds to generate a 421Mb SQLite DB and during this load the memory size of sqlite3 remained level and didn&#8217;t increase during the load phase.</p>
<p>Hopefully this helps some, if you want my test files I can supply them &#8211; but on the surface there doesn&#8217;t seem to be an issue here.</p>
<p>Gareth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-307</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Tue, 03 Aug 2010 21:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-307</guid>
		<description>I have not tried a very large file (of that size), but I seem to remember looking at the code a while a go and saw that it loaded the files in chunks - so that shouldn&#039;t be the issue (or perhaps that us my mind playing tricks on me!). However I&#039;ve been using notepad for the generation of the files and it loads them without issue. Does it work on a smaller file? I presume you are using the .import?</description>
		<content:encoded><![CDATA[<p>I have not tried a very large file (of that size), but I seem to remember looking at the code a while a go and saw that it loaded the files in chunks &#8211; so that shouldn&#8217;t be the issue (or perhaps that us my mind playing tricks on me!). However I&#8217;ve been using notepad for the generation of the files and it loads them without issue. Does it work on a smaller file? I presume you are using the .import?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Breck</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-306</link>
		<dc:creator>Breck</dc:creator>
		<pubDate>Tue, 03 Aug 2010 20:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-306</guid>
		<description>Have you tried importing of a very large file? Say on order of 200MB+. I tried it with the native SQLite3.exe and if failed without any messages. Turns out after I looked at the C implementation, the developer implemented the parsing of the file such that it never finds the newlines. I am also not sure if (did not spend enough time looking at the code, to see if there was a memory or file size issue. It appears it may attempt to load the whole file at once which defeats one of the needs I have.</description>
		<content:encoded><![CDATA[<p>Have you tried importing of a very large file? Say on order of 200MB+. I tried it with the native SQLite3.exe and if failed without any messages. Turns out after I looked at the C implementation, the developer implemented the parsing of the file such that it never finds the newlines. I am also not sure if (did not spend enough time looking at the code, to see if there was a memory or file size issue. It appears it may attempt to load the whole file at once which defeats one of the needs I have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-283</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Tue, 11 May 2010 12:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-283</guid>
		<description>These are really built into the SQLite3 application rather than the OLE-DB driver. So the simple answer is no, however if you look at the C# implementation they have ported the whole thing including the main program, via translation - so dont expect the code to be pretty, to C#. So you could lever that, or invoke the native SQLite3 application. It all depends on what you are trying to achieve!

Gareth</description>
		<content:encoded><![CDATA[<p>These are really built into the SQLite3 application rather than the OLE-DB driver. So the simple answer is no, however if you look at the C# implementation they have ported the whole thing including the main program, via translation &#8211; so dont expect the code to be pretty, to C#. So you could lever that, or invoke the native SQLite3 application. It all depends on what you are trying to achieve!</p>
<p>Gareth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goose1_fr</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-282</link>
		<dc:creator>goose1_fr</dc:creator>
		<pubDate>Mon, 10 May 2010 14:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-282</guid>
		<description>is it possible to implement this special command (.mod ; .separator and .import ...) in C# program ?</description>
		<content:encoded><![CDATA[<p>is it possible to implement this special command (.mod ; .separator and .import &#8230;) in C# program ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gab</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-281</link>
		<dc:creator>Gab</dc:creator>
		<pubDate>Sat, 08 May 2010 12:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-281</guid>
		<description>Simple, Ordered, Fully Explained. Excelent Tutorial Congrats. And thanks you. I&#039;ll use it today, u&#039;ve saved me to use MS Access !! IIUGGHHH !!! Thansk a lot. 

Gab.</description>
		<content:encoded><![CDATA[<p>Simple, Ordered, Fully Explained. Excelent Tutorial Congrats. And thanks you. I&#8217;ll use it today, u&#8217;ve saved me to use MS Access !! IIUGGHHH !!! Thansk a lot. </p>
<p>Gab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-279</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 22 Apr 2010 03:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-279</guid>
		<description>Just wanted to say thanks for the excellent series.  I&#039;ve read it 2 or 3 times now!</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for the excellent series.  I&#8217;ve read it 2 or 3 times now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-187</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sat, 23 Jan 2010 20:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-187</guid>
		<description>A minor update - I haven&#039;t tried it yet, but some recent tweaking in the dev branch is yielding improved perf for the .Net port.  They are still trying to fix bugs though....</description>
		<content:encoded><![CDATA[<p>A minor update &#8211; I haven&#8217;t tried it yet, but some recent tweaking in the dev branch is yielding improved perf for the .Net port.  They are still trying to fix bugs though&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-131</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Tue, 27 Oct 2009 00:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-131</guid>
		<description>I&#039;ve only downloaded it enough to see how well the translation went. Got to say I dont like the generated code too much. Outside of that I&#039;ve not had much to do with it. I would like to really see a native version as that avoids the whole 64 bit vs 32 bit question, and I would hope it would also help with performance (although the charp-sqlite doesnt reflect any performance gains). My hope is that the Mono team include it, or MS includes it as a native implementation :-)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve only downloaded it enough to see how well the translation went. Got to say I dont like the generated code too much. Outside of that I&#8217;ve not had much to do with it. I would like to really see a native version as that avoids the whole 64 bit vs 32 bit question, and I would hope it would also help with performance (although the charp-sqlite doesnt reflect any performance gains). My hope is that the Mono team include it, or MS includes it as a native implementation <img src='http://www.csharphacker.com/technicalblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-122</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 14 Oct 2009 14:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-122</guid>
		<description>Have you played with the .Net port of SQLite?  http://code.google.com/p/csharp-sqlite/

I&#039;d be interested in knowing if you noticed any differences...</description>
		<content:encoded><![CDATA[<p>Have you played with the .Net port of SQLite?  <a href="http://code.google.com/p/csharp-sqlite/" rel="nofollow">http://code.google.com/p/csharp-sqlite/</a></p>
<p>I&#8217;d be interested in knowing if you noticed any differences&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jenny</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-116</link>
		<dc:creator>Jenny</dc:creator>
		<pubDate>Fri, 09 Oct 2009 11:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-116</guid>
		<description>Thank you! for the very informative and useful writeup. Even those Wrox and Wiley&#039;s heavy and expensive books couldn&#039;t cleared what you have done in few lines.</description>
		<content:encoded><![CDATA[<p>Thank you! for the very informative and useful writeup. Even those Wrox and Wiley&#8217;s heavy and expensive books couldn&#8217;t cleared what you have done in few lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-101</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Thu, 24 Sep 2009 11:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-101</guid>
		<description>Glad to have helped! There is information out there, the trick is finding it!</description>
		<content:encoded><![CDATA[<p>Glad to have helped! There is information out there, the trick is finding it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimis</title>
		<link>http://www.csharphacker.com/technicalblog/index.php/2009/09/19/sqliteforcsharppart8loadingcsvpipeintosqliteviacommandline/comment-page-1/#comment-100</link>
		<dc:creator>Raimis</dc:creator>
		<pubDate>Wed, 23 Sep 2009 12:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphacker.com/technicalblog/?p=447#comment-100</guid>
		<description>Thanks

You helped me to understand this a little bit better. Too bad there are not much information about c# SQLite around</description>
		<content:encoded><![CDATA[<p>Thanks</p>
<p>You helped me to understand this a little bit better. Too bad there are not much information about c# SQLite around</p>
]]></content:encoded>
	</item>
</channel>
</rss>
