[tahoe-lafs-trac-stream] [tahoe-lafs] #1870: leasedb: performance regression
tahoe-lafs
trac at tahoe-lafs.org
Tue Aug 6 21:21:15 UTC 2013
#1870: leasedb: performance regression
-------------------------+-------------------------------------------------
Reporter: | Owner: daira
davidsarah | Status: new
Type: defect | Milestone: 1.11.0
Priority: normal | Version: 1.9.2
Component: code- | Keywords: leasedb performance regression
storage | sqlite
Resolution: |
Launchpad Bug: |
-------------------------+-------------------------------------------------
Comment (by daira):
Aha, I believe these are Statement Journal Files (section 2.5 of
[http://www.sqlite.org/tempfiles.html]).
What's confusing is that "A statement journal is only created for an
UPDATE or INSERT statement that might change multiple rows of a database
[...]". `INSERT OR REPLACE INTO` queries by definition never affect
multiple rows. The `UPDATE` statement in comment:27 cannot update multiple
rows because the `WHERE` clause specifies exact values for `storage_index`
and `shnum`, which together form the primary key, although I can see why
sqlite might not "know" that in advance.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1870#comment:30>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list