Skip to content

Support an immediate read as part of open_object() #3996

@coryan

Description

@coryan

It is possible to both open an object and then read some data. Maybe do something like:

// Open and read the trailer...
let (descriptor, reader) = client.open_object("...bucket", "my-object.parquet").send_with_read(ReadRange::last(32)).await?;

// ^^^ that has lower latency than the following:
let descriptor = client.open_object("...bucket", "my-object.parquet").send().await?;
let reader = descriptor.read_range(ReadRange::last(32)).await;

I think we can support this in the client and request builders "easily", but it may affect the mocks and therefore we should at least design for it before releasing this thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the Cloud Storage API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions