Mateusz Charytoniuk 318e9d7e76 Import CSV rows one at a time (#3450)
Credit @mcharytoniuk.

While importing over 250k records ImportModel kept running into various problems. One of them was too big memory usage - `ImportModel` loaded the complete file upfront (`$reader->fetchAll()`). Simple one-line change to `$reader->fetch()` makes `ImportModel` import CSV file row-by-row and returning an iterator which limits memory usage and allows data to be imported. This change optimizes memory usage and allows much simpler importing of larger files.
2018-03-14 12:53:18 -06:00
..
2016-05-27 07:46:50 +10:00
2017-05-20 20:01:19 +10:00
2017-05-20 20:01:19 +10:00
2017-11-11 18:36:55 -06:00
2017-07-13 19:38:44 +10:00
2017-07-13 19:29:50 +10:00
2017-05-20 20:01:19 +10:00