High performance MVC models

I am using MVC 3, and one of my views is related to a rather large model. The actual model has more than 130 properties (all of them are used in the view). Each time I return the view, it is very slow, it takes a long time until it hits the server. Is this the reason that I have client verification enabled?

+6
source share
1 answer

What do you mean by hit servers?

It seems like a model processing problem, not a wireframe problem. It really does not matter if your model has 5 or 130 properties - this should not be noticeable to the user. Double-check the model processing code for lengthy operations. If the model object is so big, I'm sure there is somewhere.

In addition, I would advise checking the client-server connection for any problems (javascript, heavy forms, etc.). The built-in tools in IE9 / Chrome and Fiddler are enough to track these problems.

+2
source

Source: https://habr.com/ru/post/897107/


All Articles