Skip to content

FileHandle is not streaming the response to a File #1055

Closed
@rjrudin

Description

@rjrudin

Found this while analyzing something else with @ehennum - I believe it's expected that when using a FileHandle with something like RowManager.resultDoc, the response from ML should be streamed to the given File. Instead, the entire response is being read in as a String and then written to the File, which is much more expensive.

@ehennum confirmed that this is not specific to RowManager either, it's generic to FileHandle - com/marklogic/client/impl/OkHttpServices.java#5364-5373

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions