darkywarkey Posted May 31, 2009 Share Posted May 31, 2009 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 More sharing options...
Ken2k7 Posted June 1, 2009 Share Posted June 1, 2009 That's what most websites do. If you are worried about performance, learn/read about caching. Link to comment https://forums.phpfreaks.com/topic/160416-best-way-to-page-a-query/#findComment-846485 Share on other sites More sharing options...
darkywarkey Posted June 1, 2009 Author Share Posted June 1, 2009 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. Link to comment https://forums.phpfreaks.com/topic/160416-best-way-to-page-a-query/#findComment-846497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.