Skip to content

CSVIngesterSocial.java reads entire sample file into memory #87

@zekizeki

Description

@zekizeki

In
https://github.com/ONSdigital/rm-sample-service/blob/master/src/main/java/uk/gov/ons/ctp/response/sample/ingest/CsvIngesterSocial.java

A SampleUnit object is held in memory for each row in the CSV read. Larger sample files will blow the heap limits set and cause a crash.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions