Hi,<div><br></div><div>Assuming you refer to the MSSQL driver the driver should provide fast data retrieval, but hasn't yet been optimized to provide fast data upload.</div><div>Currently the MSSQL driver use WKT for the geometries when submitting data to the server, while when retrieving data we use the native SqlGeometry/SqlGeography serialization format.</div>
<div><br></div><div>Not sure what you mean by "do not do bulk insert". How your own routine is looking like? Is this a .NET based program (using SqlGeometry by default)?</div><div><br></div><div>Best regards,</div>
<div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2012/8/25 Duchesne, Jimmy <span dir="ltr"><<a href="mailto:JDuchesne@korem.com" target="_blank">JDuchesne@korem.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR-CA" link="blue" vlink="purple"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-CA">I’ve been using SQL Server Driver for a few days now, and I noticed it was very slow, whatever the parameters, such as GT, I was using.<u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">I need to insert millions of rows in a table.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">To give you an idea, it takes around 1 minute to import 10k records with the driver<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal">
<span lang="EN-CA">On the other hand, if I write my own routine which reads a MapInfo file and does batch insert into the database, I can insert over 125k records per minute.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">I tried reading the same TAB file with ogr2ogr but writing to PostGis and noticed the speed was about the same than my routine, which is enough for my needs.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">Would it be possible that the SQL Server Driver does not do bulk insert?<u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">Thanks for the help.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal">
<span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><b><span lang="EN-CA" style="color:#1f497d">Jimmy Duchesne </span></b><b><span lang="FR" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray"><u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p></font></span></div></div><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>