HTML table inside foreach loop in MVC is performing too slowDear All,
While I am trying to bind the Model data using foreach loop in MVC, I am able to get lakhs of records in just 2-3 seconds at Controller side, but when the data goes from controller to view where I am using foreach, the performance is too slow which takes about more than 10 mins to bind just 50k records.
Below is my code sample :
@foreach (var device1 in Model.Devices)
@Html.DisplayFor(mod => device1.status)
@Html.DisplayFor(mod => device1.Address)
Any help or suggestion on faster binding in html table would be greatly appreciated.