keystonejs/keystone-classic

[0.x] Keystone OOMkilled on large CSV export

Open

#2,592 建立於 2016年4月8日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (14,656 star) (2,288 fork)batch import
bughelp wanted

描述

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.

貢獻者指南

[0.x] Keystone OOMkilled on large CSV export · keystonejs/keystone-classic#2592 | Good First Issue