grafana / k6-docs

The k6 documentation website.
https://grafana.com/docs/k6/latest/
84 stars 215 forks source link

More visibility to the example reading a CSV file in small chunks #1650

Open ppcano opened 1 month ago

ppcano commented 1 month ago

Reading large files can lead to OOM errors, which is a common problem with open() (here a minor related PR) .

The example using the new Stream API provides a solution for this.

Wondering how we could better connect this example with other parts of the docs or additional tutorials.

ppcano commented 1 month ago

cc @heitortsergent and @joanlopez who wrote the file.read and ReadableStream example

joanlopez commented 1 month ago

Yeah! I always thought that we have very good material within the "Examples" section, but unfortunately its visibility is not very good (imho). So, I guess we could explore things like:

Beyond that, it would also be very good to have better discoverability through the Search functionality, but afaik that's under discussion right now.