Open jamesfiltness opened 8 years ago
How large is the CSV file?
400,000 rows!
@jamesfiltness That is indeed a large CSV file! The fix is not as straightforward as replacing readFileSync
with streaming unfortunately, artillery-core
expects for the whole dataset to be in memory (it does not read the CSV files itself). Will need to have a think about this. In the meantime, do you need all of that data for your tests? Would something like https://github.com/shoreditch-ops/artillery/issues/73 be useful?
We need the data as it is in the CSV to reliably test our scenarios so chancejs isn't an option unfortunately.
A nice workaround would be to use the function
keyword to pick one randomly in a custom JS from that CSV.
Note that you cannot use function
in a loop yet, due to #216.
Hi any updates on this ticket? I have a CSV over 650,000 rows which is needed for testing.
I'm trying to use Artillery with a large csv file. I've noticed that it hangs when it tries to parse the csv file. Perhaps streaming the contents of the file would be preferable over using
readFileSync
?