I am fairly new to MVC and just feeling my way to a large extent. I am following along tutorials on ASP.Net and havent read a book yet, although I have got one on order.
I have created a rather large database and commenced to work on it in EF.
One of the tables I have prepopulated is some 10,000 records. I am not used to working in MVC yet, so maybe this question is simple in its naivety.
I would like to alphabetically sort the 10,000 records. I am not sure which way to approach this? Should I sort at the server? Should I sort only in the view? Should I not sort and somehow call back to the server to return a limited set as the user types? Which is most efficient?
Is there any advantage to partially filtering by perhaps creating a sql statement that returns the most common records first?
And so on?
I have created a rather large database and commenced to work on it in EF.
One of the tables I have prepopulated is some 10,000 records. I am not used to working in MVC yet, so maybe this question is simple in its naivety.
I would like to alphabetically sort the 10,000 records. I am not sure which way to approach this? Should I sort at the server? Should I sort only in the view? Should I not sort and somehow call back to the server to return a limited set as the user types? Which is most efficient?
Is there any advantage to partially filtering by perhaps creating a sql statement that returns the most common records first?
And so on?