Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

IView.GetPagedView

2 replies [Last post]
  • Login or register to post comments
Tue, 04/17/2012 - 02:05
stijn
Offline
Joined: 04/17/2012
Groups: None

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?

Top
  • Login or register to post comments
Fri, 04/20/2012 - 04:46
stijn
Offline
Joined: 04/17/2012
Groups: None

anyone? don't tell me i'm the first to find out...

Top
  • Login or register to post comments
Thu, 05/31/2012 - 07:57
john
Offline
Joined: 01/05/2012
Groups: None

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker