Good practices for traffic object JSON [closed]

1

I have a grid (kendo ui MVC) today it has 35163 lines, and I need to create a button to export the contents of the grid to CSV.

I thought of doing something like that, the moment I load the information to feed the grid, generate a JSON object and store that object in sessionStorage, then when generating the CSV, just take that data and send it to controller, not needing redo another query in the database.

If you do as I described above, can it hurt performance? Anyone have any better ideas?

    
asked by anonymous 29.05.2018 / 13:19

1 answer

1

I see no problem in redoing the query and generating the CSV file. It is a lot of registration to put in the Session, with several accesses from different users, can easily overload the server memory. I recommend redo the query and generate the CSV file. Think about changing this grid with so many records and using paging features.

    
29.05.2018 / 21:26