Open GoogleCodeExporter opened 9 years ago
See "Performance Hints" section at the bottom of
http://www.gdal.org/ogr/drv_sqlite.html
From the site:
"SQLite is a Transactional DBMS; while many INSERT statements are executed in
close sequence, BEGIN TRANSACTION and COMMIT TRANSACTION statements have to be
invoked appropriately in order to get optimal performance. The default OGR
behavior is to COMMIT a transaction every 200 inserted rows. This value is
surely too low for SQLite; and closing too much frequently the current
transaction causes severe performance degradation. The -gt argument allows to
explicitly set the number of rows for each transaction. Explicitly defining -gt
1024 usually ensures a noticeable performance boost; defining an even bigger
-gt 65536 ensures optimal performance while populating some table containing
many hundredth thousand or million rows."
Original comment by Sault....@gmail.com
on 8 Jan 2013 at 10:47
QSpatialite doesn't use OGR to load data.
QSpatiaLite load data in QGIS memory, and use QGIS API to read and insert data
into the DB. THis allows QSpatiaLite to deal with many problems such as special
characters, very long column names, and optimising MAPINFO compatibility.
But still, a quick import option, with OGR, should be a good option. I'll be
working on this.
Original comment by romain.r...@gmail.com
on 8 Feb 2013 at 7:49
Thanks for considering this, it will be a highly appreciated improvement =)
Original comment by Sault....@gmail.com
on 8 Feb 2013 at 8:21
Original issue reported on code.google.com by
Sault....@gmail.com
on 8 Jan 2013 at 10:45