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

ResultSeq.batch(Int $size) #143

Closed
FCO opened this issue Mar 29, 2019 · 4 comments
Closed

ResultSeq.batch(Int $size) #143

FCO opened this issue Mar 29, 2019 · 4 comments

Comments

@FCO
Copy link
Owner

FCO commented Mar 29, 2019

Should it return something like

(
   ResultSeq.new, ResultSeq.new, ...
).Seq

?

and each ResultSeq should run something like:

SELECT
   ...
LIMIT $size
OFFSET $++ * $size

?

@FCO
Copy link
Owner Author

FCO commented Mar 29, 2019

we probably need a counter to discover the size of the returned Seq...

@FCO
Copy link
Owner Author

FCO commented Mar 29, 2019

Maybe a new type (ResultSeqSeq (please!!! suggest a better name!!!)) that it's iterator would run the counter and the .flat would somehow regenerate the original ResultSeq

@FCO
Copy link
Owner Author

FCO commented Mar 29, 2019

we could implement rotor with the same idea...

FCO added a commit that referenced this issue Apr 6, 2019
@FCO FCO added this to backlog in Documenting Apr 6, 2019
@FCO
Copy link
Owner Author

FCO commented Apr 8, 2019

@FCO FCO closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant