Skip to content

StreamRead uses a lot of memory #171

@Miriameri

Description

@Miriameri

When I try to get data from my big table, there is not enough memory.
I am using StreamRead.

$streamRead = new StreamRead($stream);
$this->clickHouseManager->streamRead(
      $streamRead,
      'SELECT {columns} FROM {table_name} FORMAT CSVWithNames',
      [
             'table_name' => $tableName,
             'columns' => $columns,
      ]
);

In the public function execOne(CurlerRequest $request, $auto_close = false)
after curl_exec($h); all data is buffered

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