couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <>
Subject Re: Regarding "Skip as fast as startkey"
Date Tue, 01 Apr 2014 15:04:58 GMT
There are two issues with limit&skip pagination:

1. Performance, as you already noticed with your benchmark. However,
this performance issue is only actual when you made first request with
high skip value. If you'll increase it slowly, request time wouldn't
be too much (but still request time would be too high).

2. Design:

I have a draft of updates for this article telling why you should stay
with startkey method. Will submit it soon.


On Tue, Apr 1, 2014 at 6:12 PM, Daniel Wertheim <> wrote:
> Was looking at this:
> Which in the final comment states: "As far as I'm aware, skip is
> equivalently fast to a startkey search"
> Glanced at the latest documentation, which has this pre v.1.2 vs after
> v1.2:
> Did a quick test with 1.700.543  docs. CouchDb v1.5 Windows. Key is an
> integer from 1 to 1.700.543
> 13000ms for limit=10&skip=500000
> 48ms with startkey, startkeydocid, skip, limit
> Seems to me that the documents should still say "Don't use this" or what am
> I missing?
> //Daniel

View raw message