Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CWhisper: support (limited) backfilling/history rewrite #12

Open
bom-d-van opened this issue Dec 10, 2019 · 0 comments
Open

CWhisper: support (limited) backfilling/history rewrite #12

bom-d-van opened this issue Dec 10, 2019 · 0 comments

Comments

@bom-d-van
Copy link
Member

As the tool and I aged, a realization of a possibility of supporting users to overwrite existing timestamps in cwhisper has come to my mind.

In cwhisper, there is a simple index data structure of each archive, which is basically an array of start and end timestamps. As long as users are not sending timestamp to the current block that isn't smaller/older than the start of the previous block, it's possible for cwhisper to correctly return the last written data.

Of course this means in ReadFromBlock, cwhipser needs to parse the whole block when decoding data. This might slows down the render api for some queries (benchmarks needed still), but should be a good compromise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant