Hi,
I'm in pages, like this:
Is there any trick to fast fetch last id and first id?
The dumb way is to have a conditional:
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'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.