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

Question - are result sets and rows streamed to the caller #756

Open
mattharrigan opened this issue Jun 1, 2022 · 2 comments
Open

Question - are result sets and rows streamed to the caller #756

mattharrigan opened this issue Jun 1, 2022 · 2 comments

Comments

@mattharrigan
Copy link

Thank you for an excellent module. I have one fairly simple quetion. If a query is executed that returns a large amount of data, is the data collected in memory in its entirety before the query call returns? Alternatively, are rows and/or result sets made available to the caller as they are received? Essentially I would like to stream results, and am not sure if I should divide the large query into chunks, or just let the driver deal with it. For a little more clarity, suppose https://github.com/denisenkom/go-mssqldb#reading-output-parameters-from-a-stored-procedure-with-resultset returns 1 million rows. Would the first rows.Scan execute prior to all data being received? Thanks

@niger-prequel
Copy link

Also have this question

@kardianos
Copy link
Collaborator

kardianos commented Jan 14, 2023 via email

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

3 participants