Skip to content

json.dumps runs out of memory #28

@sapiezynski

Description

@sapiezynski

For big chunks of data we should use a StreamingHttpResponse rather than HttpResponse - generating a string with the full response at once using json.dumps may lead to a Memory Error, as it does in questionnaire API.

note: bson.json_utils does not support iterator-based dumping and json does not support dumping ObjectIds from mongo.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions