Skip to content

PgRowPublisherOperation should consider Subscriber demand #33

Open
@mp911de

Description

PgRowPublisherOperation accepts Flow.Subscriber that requests a number of data signals n (typically rows) via Subscription.request(n). PgRowPublisherOperation should consider demand to:

  • Determine a reasonable fetch size (probably a good suggestion to introduce fetchSize(long rows) on RowPublisherOperation in ADBA spec)
  • Request only n rows from a cursor (when using cursored fetching)
  • Request nextn rows as soon as Subscriber requests additional rows

Typically, it's hard to fetch exactly n rows, but the point here is to fetch more or less n rows to satisfy demand and pre-buffer some additional rows (smart prefetching) to reduce latency between I/O and processing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions