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

Return IO object for LocalResult#buf #2

Open
nelson-vantage opened this issue Dec 27, 2024 · 1 comment
Open

Return IO object for LocalResult#buf #2

nelson-vantage opened this issue Dec 27, 2024 · 1 comment

Comments

@nelson-vantage
Copy link

nelson-vantage commented Dec 27, 2024

The golang bindings imply that we can return a IO object backed by a byte array for LocalResult#buf, which means that we avoid loading the entire result into a single in-memory string. This also allows us to iterate over the results one row at a time, which can be much more efficient than needing to parse a single string as CSV or JSON in one go.

@nelson-vantage
Copy link
Author

Sketched solution: #3

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

No branches or pull requests

1 participant