asp.net mvc - Hidden Field VS Database Call -


i have query joins many tables (and time consuming) , returns data view. later want pass data view view. know can use form hidden fields pass data, or re-query database in controller of second view.

i wondering if there "preferred" way of doing far efficiency , performance concerned. better pass data view controller using hidden fields? or better re-query database in controller data?

hidden fields pretty always faster database hit. should leverage use of them when can, re-querying database 1 of main benefits of using hidden fields.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -