Jump to content

Best way to page a query... ?


darkywarkey

Recommended Posts

Currently I'm using a script that I created which creates a list of pages, like most any search you see on the web. On each page it takes a page number variable and offsets the results, but essentially it queries the database every page you click on.

 

My question is this:

 

Seems like there might be a more efficient way of paging, if there is how would a better method be? Or is this essentially how most websites do it?  ???

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/160416-best-way-to-page-a-query/
Share on other sites

That's what most websites do. If you are worried about performance, learn/read about caching.

 

Didn't even think about that. Good idea. Any good newbie cache guides for apache servers? I'm reading their http://httpd.apache.org/docs/2.2/caching.html documentation but some of it is still a bit beyond my limited server experience.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.