Skip to content

Expose a stream api and implement grouper in terms of streams. #1

Description

@spion

Instead of a row-emitting eventemitter, expose a stream. The benefits of streams are pretty great:

compose well

Streams can pipe to eachother. The grouper can be implemented as multiple components, each component being a separate stream.

support backpressure

Although the underlying databases (and node-anydb) don't really support backpressure, this may change in the future.

Edit: this already did change, and node-anydb as well as most of the databases already support streams.

lower memory usage

Streams will lower the memory usage of grouped joins - intermediate row results (which contain a lot of duplication) will not be stored in memory before processing.

Activity

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

Metadata

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