Skip to content

Add Query::fetch_owned #401

Description

@Yen

We are using Query::fetch as we have data we want to select that is too big to fit into memory. Unfortunately, it seems the implementation buffers the whole response rather than reusing the memory. I understand the lifetime-related rationale for this as outlined in #24.

In #247 the RowOwned type was added to help in these scenarios. A function similar to Query::fetch but that is constrained to RowOwned such that it can reuse the memory would solve our scenario and allow querying massive or infinite data sets.

(We cannot split the query up at the moment as we use FINAL and rely on the atomic nature of the single query.)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions