Closed
Bug 598196
Opened 14 years ago
Closed 14 years ago
Use journal_mode = WAL in cookies
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
FIXED
Future
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: dwitte, Assigned: dwitte)
References
Details
(Keywords: perf)
Attachments
(1 file)
(deleted),
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
This gives us a ~60% win in execution time per operation on the async thread, over trunk. Compared to journal_mode = TRUNCATE, it's about 40%.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
-> Future, since we can't take this for 2.0 since we're not upgrading sqlite on 1.9.2 which means dataloss for people migrating backward.
Target Milestone: --- → Future
Assignee | ||
Comment 3•14 years ago
|
||
OK, turns out we srsly need this for betaN, otherwise opening an unshared connection for synchronous ops can fail.
blocking2.0: --- → ?
Comment 4•14 years ago
|
||
Comment on attachment 476957 [details] [diff] [review]
patch
>+ rv = mDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING("PRAGMA journal_mode = WAL"));
>+ NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "couldn't set journal_mode = WAL");
Don't think this would actually fail. The only way you'd know it's not WAL is by seeing what is returned by PRAGMA journal_mode, but you probably don't care.
r=sdwilsh
Attachment #476957 -
Flags: review?(sdwilsh) → review+
Updated•14 years ago
|
blocking2.0: ? → betaN+
Comment 5•14 years ago
|
||
Possible that this is causing cookie failure when restarting the browser and you find that your logged out of forums?
Comment 6•14 years ago
|
||
Is this waiting on anything to land?
Assignee | ||
Comment 7•14 years ago
|
||
Yes -- it's in my queue along with 599799 and 591447.
Comment 8•14 years ago
|
||
http://www.sqlite.org/draft/wal.html says that WAL requires a non-networked database location, which we must support for roaming profiles.
Assignee | ||
Comment 9•14 years ago
|
||
sdwilsh sayeth that it's OK; we have the profile lock and access occurs through a single process.
Comment 10•14 years ago
|
||
(In reply to comment #8)
> http://www.sqlite.org/draft/wal.html says that WAL requires a non-networked
> database location, which we must support for roaming profiles.
More specifically, it says:
All processes using a database must be on the same host computer; WAL does not work over a network filesystem.
This doesn't work over a networked file system because it cannot use shared memory on different machines. However, if our access is on the same machine, I'm told we are fine.
Assignee | ||
Comment 11•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Could this have caused bug 605835?
You need to log in
before you can comment on or make changes to this bug.
Description
•