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

Prefetch a chunk of result for stream operation #2137

Merged
merged 1 commit into from
Nov 21, 2024

Commits on Nov 18, 2024

  1. Prefetch a chunk of result for stream operation

    Resolves typelevel#2132.
    
    Use fs2 Stream's `prefetchN` to buffer query results so that slow
    downstream operations don't slow down transaction commit.
    
    The buffered result size is `chunkSize` (equals to `fetchSize`) by
    default. If want a different buffer size, can use `transactNoPrefetc` to
    get a stream without `prefetchN` and append any prefetch operations
    wanted.
    wb14123 committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    8d39231 View commit details
    Browse the repository at this point in the history