-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Modify recon storage tables, trait and sqlite config to improve…
… throughput (#243) * feat: split recon values into their own table * feat: Remove recon add value operation and combine it with insert insert and insert_many have been modified to perform better in sqlite. We grab a transaction and do all our writes, quitting early if we've done anything before. This has appeared to about 2x throughput from the shared pool and multiple write operations we had before * feat: adjust sqlite config options synchronous = normal is typically sufficient in WAL journal mode, and demonstrates a 2x increase in writes in my benchmarks * fix: only return true from insert when key is updated * fix: update recon test expectations (and typo) we need to figure out how to make these deterministic. currently they exact order of exchange depends on the speed at which the other side takes certain actions. speeding up the inserts appears to have caused a resp before a second req in some cases. --------- Co-authored-by: David Estes <[email protected]>
- Loading branch information
Showing
12 changed files
with
429 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.