Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 2732553002: [sql] SQLite patch to implement "smart" auto-vacuum. (Closed)

Created:
3 years, 9 months ago by Scott Hess - ex-Googler
Modified:
3 years, 9 months ago
Reviewers:
pasko, Maria
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[sql] SQLite patch to implement "smart" auto-vacuum. SQLITE_FCNTL_CHUNK_SIZE can advise the VFS to resize files in quantum amounts, to reduce fragmentation from tiny appends. This change allows a new PRAGMA auto_vacuum_slack_pages to provide auto_vacuum with a hint to only rearrange pages when an entire quantum can be released. BUG=698010 Review-Url: https://codereview.chromium.org/2732553002 Cr-Commit-Position: refs/heads/master@{#459847} Committed: https://chromium.googlesource.com/chromium/src/+/e812793e45b69ee0db22a0138113ad17d2fbca13

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : rebase #

Patch Set 4 : set/get coverage #

Patch Set 5 : update patch against SQLite 3.17 #

Patch Set 6 : Omit file-size-based tests for Windows. #

Patch Set 7 : sigh, keep clang happy on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -2 lines) Patch
M sql/sqlite_features_unittest.cc View 1 2 3 4 5 6 1 chunk +92 lines, -0 lines 0 comments Download
M third_party/sqlite/amalgamation/sqlite3.c View 1 2 3 4 7 chunks +87 lines, -1 line 0 comments Download
A third_party/sqlite/patches/0011-Allow-auto-vacuum-to-work-with-chunks.patch View 1 2 3 4 1 chunk +185 lines, -0 lines 0 comments Download
M third_party/sqlite/src/src/btree.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/sqlite/src/src/btree.c View 1 2 3 4 2 chunks +55 lines, -1 line 0 comments Download
M third_party/sqlite/src/src/btreeInt.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/sqlite/src/src/pragma.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/sqlite/src/src/pragma.c View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 41 (27 generated)
Scott Hess - ex-Googler
This CL patches up SQLite. I didn't get much love when I tossed it at ...
3 years, 9 months ago (2017-03-03 00:12:06 UTC) #4
Scott Hess - ex-Googler
Rebase
3 years, 9 months ago (2017-03-03 19:49:47 UTC) #7
Maria
lgtm Though honestly, I don't think I would know if this did something wrong. To ...
3 years, 9 months ago (2017-03-03 20:23:51 UTC) #10
pasko
non-expert lgtm, looks great from bird's-eye view!
3 years, 9 months ago (2017-03-06 17:05:08 UTC) #13
Scott Hess - ex-Googler
rebase
3 years, 9 months ago (2017-03-15 20:03:21 UTC) #14
Scott Hess - ex-Googler
On 2017/03/03 20:23:51, Maria wrote: > lgtm > > Though honestly, I don't think I ...
3 years, 9 months ago (2017-03-15 20:09:06 UTC) #15
Scott Hess - ex-Googler
set/get coverage
3 years, 9 months ago (2017-03-15 21:44:46 UTC) #16
Scott Hess - ex-Googler
On 2017/03/15 21:44:46, Scott Hess wrote: > set/get coverage Hmm. OK, I have to look ...
3 years, 9 months ago (2017-03-15 23:20:30 UTC) #21
Scott Hess - ex-Googler
update patch against SQLite 3.17
3 years, 9 months ago (2017-03-24 20:40:11 UTC) #22
Scott Hess - ex-Googler
On 2017/03/15 23:20:30, Scott Hess wrote: > On 2017/03/15 21:44:46, Scott Hess wrote: > > ...
3 years, 9 months ago (2017-03-24 21:14:38 UTC) #25
Scott Hess - ex-Googler
Omit file-size-based tests for Windows.
3 years, 9 months ago (2017-03-24 22:08:10 UTC) #26
Scott Hess - ex-Googler
sigh, keep clang happy on windows
3 years, 9 months ago (2017-03-25 03:51:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732553002/120001
3 years, 9 months ago (2017-03-27 18:09:36 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 19:17:05 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e812793e45b69ee0db22a0138113...

Powered by Google App Engine
This is Rietveld 408576698