Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52104 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99635 invoked from network); 30 Apr 2011 16:34:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2011 16:34:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:50440] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/EE-10915-D0A3CBD4 for ; Sat, 30 Apr 2011 12:34:22 -0400 Received: by eyf5 with SMTP id 5so1417966eyf.29 for ; Sat, 30 Apr 2011 09:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+Bt+UpEUEgm5kKyu18qePtu2HYmlzszfkqJwwCr92G8=; b=el0RqdWIIMmY61k5JPi2NB/UrHajm5xuTNBduF2FV2JYztZxQ9QBSRgK6tZHrbu5Wf +VH42QjWG/vvTK6MWEIaY0VQyyMPJ4HVHmjwqFnfzQoupaK4zYF6gu4W6YIrVUX66JGN FyV6WI8sj0VbSMlVzRtj8x/HOIuEnCXax9XZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=i4vrhBdhdP+pPENCNnnymXYfcCmhaV96TCHd5n6b0TNuRM94qlz/lkMT3hZWsI0/3h HM8zqiiY4IKgAL1l7sWHoaD15E1yxaEAHvXjVF0vWFYM/j9SRZnZD7mSj8HU3hYSMznV XkM5g9f1gf7hiY2HGGH1nrDWv4XaUzjz8uIzA= MIME-Version: 1.0 Received: by 10.14.4.157 with SMTP id 29mr2465800eej.135.1304181258238; Sat, 30 Apr 2011 09:34:18 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.127.79 with HTTP; Sat, 30 Apr 2011 09:34:18 -0700 (PDT) In-Reply-To: <4DBC32B1.7000806@thelounge.net> References: <4DBC2D1B.10302@lerdorf.com> <4DBC32B1.7000806@thelounge.net> Date: Sat, 30 Apr 2011 18:34:18 +0200 X-Google-Sender-Auth: ovMqriQpU78GaRLywhdj86huauQ Message-ID: To: Reindl Harald Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016364163149eba0d04a2255cd6 Subject: Re: [PHP-DEV] Change Request: Make PDO default to not emulate prepared statements for MySQL From: info@tyrael.hu (Ferenc Kovacs) --0016364163149eba0d04a2255cd6 Content-Type: text/plain; charset=UTF-8 On Sat, Apr 30, 2011 at 6:02 PM, Reindl Harald wrote: > > Am 30.04.2011 17:45, schrieb Ferenc Kovacs: > > On Sat, Apr 30, 2011 at 5:39 PM, Rasmus Lerdorf > wrote: > >> Do you realize why we did this in the first place? The common versions > of > >> MySQL in use out there are not very clever when it comes to the native > >> prepared statement handling. First, there is no prepared statement > cache, so > >> there is no benefit to doing them natively, but worse, when you use a > native > >> prepared statement you completely miss the query result cache. As a > result > >> emulated prepared statements are either the same speed or faster than > the > >> native ones. Changing this default would result in a performance hit for > >> most people. It should be better documented, but that is the only > problem I > >> see here. > >> > > I disable query_cache on my machines, because it can cause performance > and > > stability issues. > > > http://www.mysqlperformanceblog.com/2011/04/10/should-we-give-a-mysqlquery-cache-a-second-chance/ > > i guess you must have some really strange things in your applications > > not really. but the global mutex and the coarse invalidation makes it capable of stalling a server and it wasn't easy so spot that. at least with vanilla mysql 5.1 http://www.xaprb.com/blog/2010/09/15/making-query-cache-contention-more-obvious/ http://bugs.mysql.com/bug.php?id=56822 but this is offtopic here, I shouldn't have brought this up. Tyrael --0016364163149eba0d04a2255cd6--