Date: 10/27/99
- Next message: Brian Knotts: "Re: [PHPLIB] show_table_cells() example?"
- Previous message: Kristian Koehntopp: "[PHPLIB] phplib leads to php3 cores?"
- In reply to: serghej petrov: "[PHPLIB] Memory or code/seesion problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
serghej petrov wrote:
> BUT this same code with phplib 7.2 with about 30 articles work
> very slow and with more 50 articles don't work at all:
You are registering very many variables with the session
management with your code. That will put a lot of load on the
page_close() function, which calls serialize() and that in turn
will be quite slow.
I suggest that you change your approach and select a random
number from new articles, then grab only that article from the
database. That will be much faster.
Kristian
-- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!) - PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Brian Knotts: "Re: [PHPLIB] show_table_cells() example?"
- Previous message: Kristian Koehntopp: "[PHPLIB] phplib leads to php3 cores?"
- In reply to: serghej petrov: "[PHPLIB] Memory or code/seesion problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

