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

Refactor iterators #78

Merged
merged 7 commits into from
Jan 7, 2025
Merged

Refactor iterators #78

merged 7 commits into from
Jan 7, 2025

Conversation

arriqaaq
Copy link
Contributor

@arriqaaq arriqaaq commented Jan 6, 2025

Description

This PR does the following:

  1. Make iterators return &[u8] instead of vector.

  2. Current methods like scan_node and query_keys_at_node return computed results which make it difficult to implement any sort of logic with limit functionality on surrealkv. This change makes these methods return an iterator, which could lead to better performance

@arriqaaq arriqaaq changed the title Refactor scan iters Refactor iterators Jan 6, 2025
@gsserge gsserge merged commit 6243aa8 into main Jan 7, 2025
2 checks passed
@gsserge gsserge deleted the refactor-scan-iters branch January 7, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants