flow-indexer
flow-indexer copied to clipboard
Make leveldb options configurable
https://github.com/JustinAzoff/flow-indexer/blob/52b1dced9fc447ce646517e99ff11731de994a65/store/leveldb.go#L29-L36
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.
also https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
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.