Optimize SQLite range reads with substr() #5701
jerome-caucat
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I think that's a good idea. In fact, I'm considering passing |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Currently, when reading data using the SQLite service (and other KV adapter-based services), the entire buffer is fetched before slicing. See
read
.We could leverage the SQLite
substr()
function and only read the requested range. This optimization would significantly improve performance when reading slices of large data.I propose submitting a PR with the following changes:
kv::Adapter
method :get
when available.Other services with similar feature could then also be improved.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions