Great explanation, thank you.
I take this means that
{"$$indexCreated":{"fieldName":"s","unique":true,"sparse":false}}
does not always need to be the very first entry of the database file and the lines dont need to be ordered by incrementally the "s"-key value?
Other than that the localDB branch works fine for me. Looking forward to it because I just ran into this issue again:
https://github.com/askmike/gekko/issues/51Oddly enough it loads the first entries just fine, but gekko fails on the last (most recent) candles, retries a few times and then shuts down.I assume there are no connectivity or DNS issues, otherwise it wouldnt be able to download the first 99 candles.