]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Buffer updates per-transaction rather than per-update. If lots of
authorshess <shess@noemail.net>
Thu, 29 Mar 2007 18:41:03 +0000 (18:41 +0000)
committershess <shess@noemail.net>
Thu, 29 Mar 2007 18:41:03 +0000 (18:41 +0000)
commit06c69d2ed67feaaf9eac7b94c54ef045fa28991c
treea75a4646867238b9405bb31c784723bdd92656cd
parent3ceeb75680d518042aa73f83c0d2875e04f5058d
Buffer updates per-transaction rather than per-update.  If lots of
updates happen within a single transaction, there was a lot of wasted
encode/decode overhead due to segment merges.  This code buffers
updates in memory and writes out larger level-0 segments.  It only
works when documents are presented in ascending order by docid.
Comparing a test set running 100 documents per transaction, the total
runtime is cut almost in half. (CVS 3751)

FossilOrigin-Name: 0229cba69698ab4b44f8583ef50a87c49422f8ec
ext/fts2/fts2.c
manifest
manifest.uuid
test/fts2k.test [new file with mode: 0644]