Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

EntitySource API Question #94

@joelanford

Description

@joelanford

I was tinkering with building an EntitySource implementation, and as I was trying to build out the Filter, GroupBy, and Iterate functions, and I realized I always needed to List into memory and then iterate to support these other functions because the backend in my case had no iterator/cursor sort of API.

I wonder if we should relax the base EntitySource API to be just Get and List, and then have an additive interface that callers can type check, to see if the more performant methods could be delegated to the entity source.

  1. If so, call the entity source's methods
  2. If not, List(), and then do the filtering, grouping, iterating at the call site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions