php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7796 Slow reqursive functions with MySQL
Submitted: 2000-11-13 19:04 UTC Modified: 2001-03-08 20:32 UTC
From: ramzeus at home dot se Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.2 OS: Linux 2.2.16 @ 120 Mhz i586 32 M
Private report: No CVE-ID: None
 [2000-11-13 19:04 UTC] ramzeus at home dot se
I have a PHP function that draws out a forum stored i a MySQL database. 
The function uses a reqursive call to itself, to do the next messagereply on the current message.

My problem is that all this works VERY slow.
All other MySQL calls works very fast...

The preformance I'm getting is about 2.2 KB/s data output (HTML formatd).
All other operations give me about 30 KB/s (may be more because there is only a 256 Kbit connection to the server).

I'm using the supplied standard mysql.ini file

Is there a memory leaking problem? 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-21 05:16 UTC] cynic@php.net
recursion in PHP is pretty fast. could you post a (stripped down as much as possible) script that shows the behavior?
 [2001-03-08 20:32 UTC] sniper@php.net
No feedback. Try PHP 4.0.4pl1, maybe it works better?

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 15:01:33 2024 UTC