incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Carey" <>
Subject Re: Paging
Date Fri, 10 Oct 2008 16:13:55 GMT
>> I believe I remember seeing a thread about paging where Damien recommended
>> doing count+1 for the count -- meaning, get one more record then necessary.
>> You don't have to display the extra record, but it gives you all the data
>> you need to determine if you need a next link for additional records.
> Of course! You're absolutely right. I had started using count+1 and
> then changed to skip when I saw that Futon was using skip rather than
> count+1.

Although I'm not sure it makes displaying a prev link any easier. If
you didn't want to use skip, I think you'd need to retrieve count + 2
items and hide the items at either end - which feels like swapping one
sort of complexity for another. Hmm.

View raw message