Skip to content

stream support isn't really streaming... #743

Description

@fusionfoto

It appears, that when wants to access a large (>5GB) object via stream...

$objectContent = $file->getContent();
$objectContent->rewind();
echo (stream_get_contents ($objectContent ->getStream(), 500000,0));

The entire file is pulled from the object store and written to /tmp before streaming can begin... so we are basically just opening a local file as a stream. Since Swift already supports offset calling, this request (seek, read to offset, etc) could actually be done by an autonomic call directly to swift. I'm not sure the library is adding any value here.

Has anyone else flagged this behavior and is this the way its "supposed" to be?

thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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