keystonejs/keystone-classic

[0.x] Keystone OOMkilled on large CSV export

Offen

#2.592 geöffnet am 08.04.2016

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.288 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (14.656 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

When exporting a keystone list as csv, the entire backing collection is loaded into memory before sending the response. This renders the export feature useless for a large collection; keystone will exhaust the available memory on the machine until it gets OOMkilled.

Instead, the export should be streamed back to the client so that we never load more than a cursor's worth of data in memory.

Contributor Guide