>> 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.