Comment

Comment by hasanyildiz

That's a really good point and honestly a very reasonable feature for a minimal store. TinyKV stores keys in a HashMap internally, so it doesn't currently support lexicographic ordering or prefix scanning efficiently. But you're absolutely right if we switched to a BTreeMap (or exposed one as an option), prefix queries could be both fast and natural. I'll add this to the roadmap. Would you mind opening a GitHub issue with your specific use case?

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton