Skip to content

Raw queries should allow scanning row by row #1288

@john8329

Description

@john8329

Hi, for performance reasons (and coherence with the standard sql query), when doing db.NewRaw(query) the returned object should have the .Rows() property for using an iterator instead of scanning the whole result.
This is crucial for big workloads where batching is required to avoid using too much memory (exporting for example). Right now the only workaround I can think of is manually adding offset and limit.

Thanks

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