Skip to content

Commit

Permalink
Merge pull request #9466 from ctoney/patch-1
Browse files Browse the repository at this point in the history
doc: update the ogr2ogr default value for -gt in SQLite performance hints
  • Loading branch information
rouault authored Mar 15, 2024
2 parents ad8ed7a + 6ee9e30 commit 35feb24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/source/drivers/vector/sqlite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,8 @@ OGR_L_StartTransaction() / OGR_L_CommitTransaction()) in order to get
optimal performance. By default, if no transaction is explicitly
started, SQLite will autocommit on every statement, which will be slow.
If using ogr2ogr, its default behavior is to COMMIT a transaction every
20000 inserted rows. The **-gt** argument allows explicitly setting the
number of rows for each transaction. Increasing to **-gt 65536** or more
ensures optimal performance while populating some table containing many
hundredth thousand or million rows.
100000 inserted rows. The **-gt** argument allows explicitly setting the
number of rows for each transaction.

SQLite usually has a very minimal memory foot-print; just about 20MB of
RAM are reserved to store the internal Page Cache [merely 2000 pages].
Expand Down

0 comments on commit 35feb24

Please sign in to comment.