KhodeN
unread,Mar 30, 2012, 10:18:23 PM3/30/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ServiceStack .NET Open Source REST Web Services Framework
I have tried to select limited count of rows with this:
var list = dbCmd.Select<AddressObject>().Take(10);
But it didn't work perfectly. It is so slow! (Common number of records
is about 11 millions)
Another way I have tried was this:
var list = dbCmd.Select<AddressObject>("SELECT TOP 10 * FROM
as_addrobj");
It was quick, but I think, that it is dirty. This way is workaround.
How to select limited count of records with correct way?