flow-indexer icon indicating copy to clipboard operation
flow-indexer copied to clipboard

Make leveldb options configurable

Open JustinAzoff opened this issue 6 years ago • 3 comments

https://github.com/JustinAzoff/flow-indexer/blob/52b1dced9fc447ce646517e99ff11731de994a65/store/leveldb.go#L29-L36

JustinAzoff avatar Apr 10 '18 16:04 JustinAzoff

ah, one trickyness with this is there is support for more than one store, but I could add a somewhat generic store option type? some sort of cache size would be common to many of them.

JustinAzoff avatar Apr 10 '18 16:04 JustinAzoff

also https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

JustinAzoff avatar Apr 10 '18 16:04 JustinAzoff

From testing, it seems the problem for memory usage is mostly the WriteBuffer, so I may just release a new version that drops that back to the default.

JustinAzoff avatar Apr 10 '18 21:04 JustinAzoff