|
Posted by Chung Leong on 03/14/06 04:22
comp.lang.php wrote:
> I have currently devised a way to display up to 3,000 records via
> PHP/HTML by using pagination techniques that stuff an entire DB query
> resultset into a $_SESSION object to use within pagination.
You know, that's not very efficient. PHP always write session variables
to disk, even when there are no changes. Your server will end up doing
a lot of unnecessary disk writes. Given that a write operation always
lead to mechanical actions while a read operation can be fully cached,
I say you'd be better off re-running the query on each page.
Navigation:
[Reply to this message]
|