Make sync read-your-write guarantee optional
penberg opened this issue · comments
We turn on read-your-write guarantee now unconditionally, but in some use cases that's not desirable. Let's make it configurable.
Hi! I would still like to read-my-write but can the sync be done in a separate thread? I've noticed that after I write, my (node) server is blocked until the write finishes. Ref to discussion: https://discord.com/channels/933071162680958986/1265128069715464223
read-your-write means you immediately see your write in a local db. You can still have periodic sync in the background but it is not strictly read-your-writes.
hmm okay, I'll wait for this to be released to see if it fixes the read latency immediately after a write.
@khuezy you should be able to use opts.readYourWrites = false to get better performance now
Not yet. It will be in the next release @khuezy