Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi,
I'm in pages, like this:
Code: Select all
<cms:pages> ... </cms:pages>

Is there any trick to fast fetch last id and first id?
The dumb way is to have a conditional:
Code: Select all
if k_absolute_count = k_total_records
if k_absolute_count = 1

Fetching a thousand pages only to get these values can slow things down, right?
I can fetch only_ids, and then parse the string with cms:each. Would it be the only alternative way?

Thanks a lot.
I will leave this question here, but answer is not needed already.

cms:pages doesn't seem to support start_on with k_page_id, only with date. Change of plans.
2 posts Page 1 of 1