Andrew Ashikhmin
84285a5ab1
Roughly finish with adding BadgerDB (first cut) ( #203 )
...
* Bumping GOMAXPROCS for Badger
* fixes related to database size
* Schedule GC for Badger
* pacify linter
* Don't start GC for ephemeral Badger
* Don't log "Value log GC attempt didn't result in any cleanup"
* Start GC in backround
* Bump GC period and IdealBatchSize for Badger
* BadgerDatabase RewindData
* Boolean badger flag -> string database flag
* cosmetic change
2019-11-27 13:15:25 +00:00
Evgeny Danilenko
992e34745c
Replace red black trees ( #184 )
...
* use map instead of rb tree
* GetModifiedAccounts
* introduce tuples
* linters
* linters
* init puts
* init maps
* remove GetSortedKeys
* fix string bucket case
* use append in tuples
* fix tuples
* fix tests
* all tests are green
* fmt
* fmt
* rename tuple to tuples
2019-11-21 18:38:00 +00:00
Andrew Ashikhmin
1c0cf9be72
BadgerDB: MultiWalk & some other APIs, command line flag, scaffolding for testing ( #183 )
...
* BadgerDatabase MemCopy
* fix err shadowing
* BadgerDatabase MultiPut & NewBatch
* Remove goOn from MultiWalk & MultiWalkAsOf
* BadgerDatabase MultiWalk. Scaffolding for testing Badger in blockchain_test
* Badger Flag
* fix error logging
* Split IdealBatchSize between BoltDB and BadgerDB
* NewEphemeralBadger
2019-11-21 16:12:38 +01:00
andrew
0eb9d3915b
Add method stubs to BadgerDatabase so it formally implements the Database interface
2019-11-14 13:00:38 +01:00
andrew
62d36ada39
BadgerDatabase Walk
2019-11-13 17:43:26 +01:00
andrew
109217a9da
BadgerDatabase Has
2019-11-12 11:40:46 +01:00
andrew
a6d0e795c0
BadgerDatabase GetAsOf
2019-11-11 17:02:37 +01:00
andrew
26cb9bd33b
BadgerDatabase GetS
2019-11-07 15:55:21 +01:00
andrew
069343d5a8
BadgerDatabase DeleteTimestamp
2019-11-06 11:24:48 +01:00
andrew
9be775c8bd
Port my work from badger after the master rebase
2019-11-05 13:28:36 +01:00