efficient paging with PetaPoco MVC3

Go To StackoverFlow.com

1

Is there any way we could do efficient paging with petapoco and mvc3. At present i am pulling all the records which is certainly not a prefect way to do it.

It was very easy with using LINQ skip() take().

NOTE: this is going to be implemented in an auction portal and database would be massive.

Experts please shed some light.

2012-04-05 18:58
by Varun Maggo


1

There's an example of how you could do paged queries in the documentation. And here's the new API.

2012-04-05 19:05
by Darin Dimitrov
Thanks it helped! I also followed this article. http://snipt.net/dkitchen/tag/mvccontri - Varun Maggo 2012-04-07 07:06
Ads