Jimmy,<div><br></div><div>Seems we can get the significant improvement by using bulk inserts then. You may submit a ticket to keep this enhancements in scope.</div><div>Some of the guys used the driver successfully by using FreeTDS on Linux.</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/27 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">Thanks for the answers guys.<br>
<br>
What you're saying concurs with what I was experiencing, and I believe, what I was seeing with the SQL Server Management profiler.<br>
<br>
Also, I don't know if inserting with something else than WKT would actually improve the performance because my test, bulk inserts done with Java, were also inserting using WKT.<br>
<br>
Finally, just to be sure, is there any issue with using this driver on a Linux OS?<br>
<span class="HOEnZb"><font color="#888888"><br>
Jimmy.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:fwarmerdam@gmail.com">fwarmerdam@gmail.com</a> [mailto:<a href="mailto:fwarmerdam@gmail.com">fwarmerdam@gmail.com</a>] On Behalf Of Frank Warmerdam<br>
Sent: August-24-12 6:39 PM<br>
To: Duchesne, Jimmy<br>
Cc: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>; Szekeres Tamás<br>
Subject: Re: [gdal-dev] SQL Server Driver<br>
<br>
Jimmy,<br>
<br>
>From an examination of MSSQLSpatialTableLayer::CreateFeature() it<br>
appears a regular INSERT statement is done for each feature written to<br>
the db rather than any sort of bulk mechanism.  I could be missing<br>
something of course.  Hopefully Tamas will provide a more experienced<br>
answer.<br>
<br>
Best regards,<br>
Frank<br>
<br>
<br>
On Fri, Aug 24, 2012 at 3:03 PM, Duchesne, Jimmy <<a href="mailto:JDuchesne@korem.com">JDuchesne@korem.com</a>> wrote:<br>
> Hello,<br>
><br>
><br>
><br>
> I've been using SQL Server Driver for a few days now, and I noticed it was<br>
> very slow, whatever the parameters, such as GT, I was using.<br>
><br>
><br>
><br>
> I need to insert millions of rows in a table.<br>
><br>
><br>
><br>
> To give you an idea, it takes around 1 minute to import 10k records with the<br>
> driver<br>
><br>
><br>
><br>
> On the other hand, if I write my own routine which reads a MapInfo file and<br>
> does batch insert into the database, I can insert over 125k records per<br>
> minute.<br>
><br>
><br>
><br>
> I tried reading the same TAB file with ogr2ogr but writing to PostGis and<br>
> noticed the speed was about the same than my routine, which is enough for my<br>
> needs.<br>
><br>
><br>
><br>
> Would it be possible that the SQL Server Driver does not do bulk insert?<br>
><br>
><br>
><br>
> Thanks for the help.<br>
><br>
><br>
><br>
> Jimmy Duchesne<br>
><br>
><br>
><br>
><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>
<br>
<br>
<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Software Developer<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>
</div></div></blockquote></div><br></div>