Re: Name for new function
| From: | Zeev Suraski | Date: | Mon, 17 Jul 2000 16:04:15 +0000 |
| Subject: | Re: Name for new function | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24781@lists.php.net to get a copy of this message | ||
As I pointed out, I tend to think the same. This should be done in user-space, until there's 'true' support for sub-selects in MySQL.
Zeev
At 12:08 17-07-00, Kristian Köhntopp wrote:
Derick Rethans wrote: It seems that the function written in C code is about 15-20% faster than the implementation in user-space PHP. I think it's significant enough. My plan is to commit the patch to cvs within a few days. (I have to do some tweaking at some places). Why did you write it as a PHP extension, and not as a MySQL extension? By doing what you did, you will generate hideously inefficient queries, because they are run at the wrong side of the client-server chasm. You will cement that wrongness by adding it to the PHP/MySQL extension core. Other people will use it, and future scripts will depend on it, making it necessary to keep your extension even after it has been made obsolete by doing it the right way within the MySQL server. Without looking at your code at all, I vote that your patch be rejected for architectural and strategic reasons. Kristian -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- Zeev Suraski <zeev@zend.com> http://www.zend.com/