Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61014 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94511 invoked from network); 28 Jun 2012 03:46:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2012 03:46:01 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:39143] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/E3-08168-873DBEF4 for ; Wed, 27 Jun 2012 23:46:00 -0400 Received: by ggnf2 with SMTP id f2so1802257ggn.29 for ; Wed, 27 Jun 2012 20:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=qk7laO14hOlt9ui3yCJnX2oog+vmWA8KhZ+hK9lnEYo=; b=kqp0J40lOkx2AOOI0Uk9pkPOc2hod86/wyfvBW68HHMhk9/Ma0XxjldavFXhi7711p lNWm/cwaF9QZUyR5FnS4Evrq+DAL227ukLWiakdxZsnIDau/t3pK5Bz4TrvSVx+oCGYj dvY4CgXuHWuBvCF9SV7tRzTLm9BA67Lhq3o/SWvcNhfpiWQx6Lj3BXW1EY3lzwv2Kgku JxSfAjQyfypxUHCQm0KQiV6n7sXMnA9UKz5iMviruQhFbdb4/yUXyJR4NxnwlsUqSVjQ rNdL90pI1RV3wKlXGWvqibG0CYYjHDA29bUW0P0bbt5nJjuujNGP86TXj3EpBMZkC4cw GKjA== Received: by 10.236.115.136 with SMTP id e8mr507542yhh.63.1340855157317; Wed, 27 Jun 2012 20:45:57 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.147.50.1 with HTTP; Wed, 27 Jun 2012 20:45:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Jun 2012 12:45:17 +0900 X-Google-Sender-Auth: B-UkQfcWjNqCXmhHc38T6TN0uo8 Message-ID: To: Anthony Ferrara Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH - PR] Disable ATTR_EMULATE_PREPARES by default for PDO_Mysql From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, I forgot to mention MySQL's query cache. This change may have negative performance impact, since prepared query is not cached and native prepared query may not be used by other requests. It would be nice to have an option keeping prepared statement when PDOStatement destroyed. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net 2012/6/20 Yasuo Ohgaki : > Hi, > > I'm not opposed to this change, but I would like to give some ideas. > > If I use PDO postgresql and prepared statement, it executes native > prepared query. However, prepared statement is released(removed) > when PDOStatement object is destroyed. > > If PDO MySQL made like this, performance will not increase much > unless app issues the same SQL query over and over during request. > It would be nice to have option for not to release prepared query for > better performance. > > BTW, PDO should have method for setting client/database encoding. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > > 2012/6/15 Anthony Ferrara : >> Hello all, >> >> I raised this topic on list over a year ago ( >> http://marc.info/?l=php-internals&m=130417646507744&w=2 ). It was >> determined that it wasn't time yet to disable prepared statement >> emulation for MySQL yet. However, Rasmus did mention that it was a >> possibility for 5.4 ( >> http://marc.info/?l=php-internals&m=130418875017027&w=2 ). Since that >> ship has sailed, I submitted a pull request for trunk to change the >> default value of prepared statement emulation for MySQL. >> >> https://github.com/php/php-src/pull/108 >> >> https://bugs.php.net/bug.php?id=54638 >> >> Does this need to be an RFC (should I draft one)? Or can it just be >> pulled as-is? >> >> Thanks, >> >> Anthony >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>