Philip O'Toole
fc7b9901f6
Add DB-level unit test of WAL removal on close
9 months ago
Philip O'Toole
e48031b6f5
Small tweaks
9 months ago
Philip O'Toole
ff7a6bc872
Warn for 1GB SQLite files (and larger)
9 months ago
Philip O'Toole
bf1b6ea5de
Open a non-existent database file should work
9 months ago
Philip O'Toole
4988c29951
Log at DB level if open times are higher
9 months ago
Philip O'Toole
140f106acc
Add ReadFrom to Store
9 months ago
Philip O'Toole
cdf7cbdea1
Handle snapshots for empty WALs
9 months ago
Philip O'Toole
62dcb881fc
More DB and Checkpoint tests
10 months ago
Philip O'Toole
a0bf10b021
Move VACUUM to DB layer
10 months ago
Philip O'Toole
817998396f
Add VACUUM to database code
10 months ago
Philip O'Toole
11c5c86c4b
Merge pull request #1449 from rqlite/otoolep-remove-unneeded-header-fetch
...
Remove unneeded refetch of the header
10 months ago
Philip O'Toole
c0061aca06
Add missing update
10 months ago
Philip O'Toole
fd01909415
Update writer.go
10 months ago
Philip O'Toole
967bd410ae
No need to cast indicces
...
GPT4 spotted this
10 months ago
Philip O'Toole
ab3671d66c
Make it clearer why checksum checks not needed
10 months ago
Philip O'Toole
4c31c480f5
Better name
10 months ago
Philip O'Toole
5a8a2744ff
Support skipping verifying frame data
...
This halves the Compacting Scan time, and doesn't seem necessary since
rqlite is the only system writing the WAL files.
10 months ago
Philip O'Toole
1b0dfe6942
Check WAL frame header checksum earlier
10 months ago
Philip O'Toole
bb12489e9d
Linting
10 months ago
Philip O'Toole
aaf85461e7
Minor updates
10 months ago
Philip O'Toole
10546281c3
Remove unneeded testdata
10 months ago
Philip O'Toole
b68bb9a0d2
Remove invalid test
10 months ago
Philip O'Toole
d36d31d0c4
Check Writer and Compactor
10 months ago
Philip O'Toole
d690993cff
Comments
10 months ago
Philip O'Toole
93c1b2c435
Add Compacting tests with 0 commit frames
10 months ago
Philip O'Toole
797bb90f75
Basic unit test for Compacting Scanner
10 months ago
Philip O'Toole
22832edce0
More type rename
10 months ago
Philip O'Toole
6ec424a6b4
Rename types
10 months ago
Philip O'Toole
f1dc1acbf8
Fine renames
10 months ago
Philip O'Toole
ee83091741
Add Compacting Scanner
...
Not tested, just builds.
10 months ago
Philip O'Toole
285a985e51
Unit test FullWALScanner
10 months ago
Philip O'Toole
e8ad9f43ac
Full WAL writer passes test
10 months ago
Philip O'Toole
f2102db9bb
Full WAL writer -- not tested
10 months ago
Philip O'Toole
4a7a9fc362
Add full WAL Scanner
10 months ago
Philip O'Toole
40bdc8d692
No compactor right now
10 months ago
Philip O'Toole
a6c6371fef
Move constants
10 months ago
Philip O'Toole
b3e57dd280
Add TODO XXXX
10 months ago
Philip O'Toole
10a20237ca
Complete compaction?
10 months ago
Philip O'Toole
e7fe5abe7e
Remove unused type
10 months ago
Philip O'Toole
ae55b98f15
Add GPT-generated compaction
...
Not tested.
10 months ago
Philip O'Toole
6e30f1476c
Merge remote-tracking branch 'origin' into litefs-snapshotting
10 months ago
Philip O'Toole
a210a00cd1
Close right DB
10 months ago
Philip O'Toole
cd3dbe94fe
Test Dump by reloading it into new database
...
String compare may be brittle. See: https://ci.appveyor.com/project/otoolep/rqlite/builds/48587534
10 months ago
Philip O'Toole
41c59ea531
Add initial skeleton of WAL Compactor
1 year ago
Philip O'Toole
0c0c6cd757
Fix output
1 year ago
Philip O'Toole
b238b6c2fb
Add simple tool for examining WAL files
1 year ago
Philip O'Toole
f3f6611eb6
Add WAL-related code from litefs
...
Many thanks to the authors of litefs.
1 year ago
Philip O'Toole
53b432a391
More DB and Snapshot stats
1 year ago
Philip O'Toole
4869a2be35
1 RW DB connection only!
...
Connections where coming from the pool, and if they were new, they had
autocheckpointing set back to 1000!
1 year ago
Philip O'Toole
ffe9688dcd
Still just setting pragmas on RW conn
1 year ago
Philip O'Toole
3030226ab1
Comment
1 year ago
Philip O'Toole
c737e73eb2
Fix up test
1 year ago
Philip O'Toole
fbbe282670
Test that databases open with checkpoint disabled
1 year ago
Philip O'Toole
0fe26d35d7
Actually disable automatic checkpointing
1 year ago
Philip O'Toole
3b6c988dd9
Do some syncing and closing
1 year ago
Philip O'Toole
cb989d09a2
Some changes from PR v2
1 year ago
Philip O'Toole
1a24557c19
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
208fc20659
Fix more uses of random
1 year ago
Philip O'Toole
54713b63f4
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
c1a8b4a13a
Use global, sync'ed random source
...
Almost unbelievably it appears tests on AppVeyor get the same value when
seeding the random generator. See https://ci.appveyor.com/project/otoolep/rqlite/builds/47853399
1 year ago
Philip O'Toole
c44d020c11
Only attempt to checkpoint once
1 year ago
Philip O'Toole
0589233362
More Windows-triggered fixes
1 year ago
Philip O'Toole
eed11dee8c
Comment
1 year ago
Philip O'Toole
d4aab33163
More testing of DB checkpointing
1 year ago
Philip O'Toole
8d6d31649f
ABL
1 year ago
Philip O'Toole
cacc03199e
Add DB WAL Path and test
1 year ago
Philip O'Toole
b85e431972
Upgrade SQLite so that we pull in FTS5
1 year ago
Philip O'Toole
85eb2cca84
Unit test creation of FTS3, FTS4, and FTS5 tables
1 year ago
Philip O'Toole
1b14eaf6df
Fix error checking
...
https://github.com/rqlite/rqlite/pull/1317#discussion_r1286866112
1 year ago
Philip O'Toole
b95442d0fe
Remove empty files
1 year ago
Philip O'Toole
13fce2fac2
Remove in-memory support from DB layer
1 year ago
Philip O'Toole
c7b00f039c
Make operation of checkpoint clearer
1 year ago
Philip O'Toole
b57011336f
DB can run an integrity check
1 year ago
Bjorn Pagen
166f0d92a9
Update old comments with correct function name
1 year ago
Philip O'Toole
1107690c52
Migrate HTTP layer to chunked loading
1 year ago
Philip O'Toole
8edb5c9967
Add DB-level tests of using "COLLATE"
1 year ago
Philip O'Toole
370688730f
Better name for test
1 year ago
Philip O'Toole
722c40f77f
Test use of NUMERIC type
1 year ago
Philip O'Toole
f22dff319b
Ensure invalid expression is handled
1 year ago
Philip O'Toole
61b2e10b2e
Fix db-level unit tests
1 year ago
Philip O'Toole
70a3c38b82
Only do a one-shot empty types check
1 year ago
Philip O'Toole
316ee52b4c
Fill in empty types using actual queried data
1 year ago
Philip O'Toole
36fa7f2afd
Detect DB stats error and log
1 year ago
Philip O'Toole
c552dba575
Record how long checkpointing takes
1 year ago
Philip O'Toole
b64efbdee1
Better testing
1 year ago
Philip O'Toole
539e578227
Add WAL-validity checking functions
1 year ago
Philip O'Toole
d940779045
More unit testing of WAL-replay
1 year ago
Philip O'Toole
50fbdc73fd
Tigther code
1 year ago
Philip O'Toole
a9796eeb36
Better testing
1 year ago
Philip O'Toole
6cd8d30749
Fix Store-level database-backup test
1 year ago
Philip O'Toole
ca67ee4cff
Remove debug statement
1 year ago
Philip O'Toole
68fc185c76
More WAL DB open testing
1 year ago
Philip O'Toole
19d83ff1ca
More enforcement of DELETE mode in-and-out
1 year ago
Philip O'Toole
0463a92fde
Fix Serialize() to work with WAL mode
...
This function is even more resource (disk, RAM) intensive, but it's goal
is to be correct, not efficient.
1 year ago
Philip O'Toole
4e639d4f17
Add more detail to comments
...
Serialize() is problematic with WAL mode databases. It needs close study
and may have to be retired before enabling WAL mode. For example
Serialize() is called by Snapshotting. Snapshotting would need to move
to Backup, at for on-disk mode.
1 year ago
Philip O'Toole
33b56af639
Fix Backup for WAL mode
1 year ago
Philip O'Toole
3f462eecfa
Remove all on-disk SQLite files on startup
1 year ago
Philip O'Toole
26ad4913c9
Correct comment
1 year ago
Philip O'Toole
6b32b7f4d2
Add function which returns size of WAL
1 year ago
Philip O'Toole
7e1b8d12d7
Add full WAL support to DB layer
1 year ago