Skip to content

Possible optimization with first() method #307

@sgangwisch

Description

@sgangwisch

Looking through the source code I noticed that the first query method pulls down the entire dataset and then returns the first element in the array. A possible optimization to this would be to automatically append limit(1) if not present in order to limit the returned dataset to just one record. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions