IView.GetPagedView
i have the impression that paging is not really working. how should this be used?
currently my code does something like:
public IList GetPage(int pageIndex, int pageSize)
{
IView view = client.GetView([...]);
IPagedView pagedView = view.GetPagedView(pageSize);
do
{
bool b = pagedView.MoveNext();
} while (pagedView.PageIndex != pageIndex);
...
}
but it's not really working: pagedView.PageIndex increases with each ModeNext() but in the end the items are always the same ones (the first [pageSize] items) pageIndex apparently does not influence the results.
what is who doing wrong?
Sorry for the late response. You are correct that paging is broken with the 1.2 developer preview. I am going to be looking into several fixes for the 1.2 client this month and paging is a priority.
I've logged an issue at http://www.couchbase.com/issues/browse/NCBC-50 and will update that bug with progress.
-- John
anyone? don't tell me i'm the first to find out...