mercredi 24 février 2016

HTML/Javascript + CSVs - Using filters vs. Loading many CSVs

I'm thinking about what is the best way to feed a chart with filtered data. The thing is that I have year and month filters among others and I want the chart to be quick on showing up and switching data on filter change.

Is it better to prepare already filtered data into individual CSVs and load them from server as needed or should I use Javascript to filter data on client side using a big CSV?

Individual files:
- Load quickly
- No client-side computations

Big CSV:
- Avoids network connection (loaded once)

If I choose individual files I would have A LOT of them as filters create many combinations. I don't know if there is any drawback in that case. I think the individual files are the option with the highest performance.

Aucun commentaire:

Enregistrer un commentaire