in reply to Solution - Re: Building an index for next/last in a photo album.
in thread Building an index for next/last in a photo album.

Your solution is quite general, but I don't like the idea of retrieving all the records every time I need to build next and previous links in a page; why don't you use the LIMIT/OFFSET clause available under PostgreSQL and MySQL?

Ciao, Valerio

  • Comment on Re: Solution - Re: Building an index for next/last in a photo album.