Paging - a side note

From: Date: Thu, 12 Dec 2002 19:18:27 +0000
Subject: Paging - a side note
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6781@lists.php.net to get a copy of this message
Pagination is indeed an interesting topic. The suggestions I have read all seem to depend on knowing the row count of the query result. I have a database of about 1.5 million records and i have to paginate complex search results. If I were to use num_rows or count(*) first, my searches would far too slow. So I have to use limit (with offset and rows) and to get only 20 matching record at the time not knowing how many there will be. If someone (Ben Phillips him self perhaps) would write a plugin to this kind of a situation, at least I would be very happy (regardles of where the logic is :) greetings, Yrjo

« previous php.smarty.general (#6781) next »