mardi 27 janvier 2015

Shoudl I generate reports client or server side?


I am thinking of a standard AJAX setup (JS<->PHP<->MySql).


I want to generate reports (charts, tables, etc) probably using at maximum a few dozen data points (certainly never over 1k).


I am unsure whether to D/L all data on initial page load and generate charts when the user changes a parameter - say start date for example - using JS totally on the client side or to send an AJX request to the server & use PHP there to generate & return a chart.


What should I take into consideration?



  • Is there a standard approach, or does it "depend"?

  • Any considerations of performance with so little data? Security?

  • Might client side be better if I want to export the reports?

  • Does it just boil down to which ever free charting package looks good to me?





Aucun commentaire:

Enregistrer un commentaire