<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Johannes Schlüter - Comments</title>
    <link>http://schlueters.de/blog/</link>
    <description>Johannes Schlüter - Always searching for Life, the Universe and Everything</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Sat, 25 May 2013 05:58:02 GMT</pubDate>

    <image>
        <url>http://schlueters.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Johannes Schlüter - Comments - Johannes Schlüter - Always searching for Life, the Universe and Everything</title>
        <link>http://schlueters.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>James Day: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25022</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (James Day)</author>
    <content:encoded>
    For batching, consider the common case where there are many  fast queries per page load. Do them all in one round trip on one connection... &lt;img src=&quot;http://schlueters.de/blog/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;

With memcached API, that may turn out to be doable more quickly querying the database directly than splitting some of the work into memcached itself and some into the database server.

James 
    </content:encoded>

    <pubDate>Thu, 04 Oct 2012 12:21:14 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25022</guid>
    
</item>
<item>
    <title>James Day: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25021</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (James Day)</author>
    <content:encoded>
    gggeek, I look at users at a massive place paying attention to connect time optimisation and that tells me that they think it&#039;s painful enough for them that they want something done to improve it...

Being faster than others is good but we can be even faster... one round trip plus a little per query is what I want to see. Then maybe one round trip for multiple queries carried out sequentially or in parallel, perhaps batched up by a connector transparently.

James Day 
    </content:encoded>

    <pubDate>Thu, 04 Oct 2012 12:17:15 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25021</guid>
    
</item>
<item>
    <title>Johannes Schlüter: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25019</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (Johannes Schlüter)</author>
    <content:encoded>
    Yes, the MySQL login will be done when using this plugin, in the current form, anyways. There are some thinkable approaches to eliminate those. Not sure we&#039;ll add them, they can have negative side effects ... needs some thinking. 
    </content:encoded>

    <pubDate>Wed, 03 Oct 2012 04:19:13 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25019</guid>
    
</item>
<item>
    <title>Johannes: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25018</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (Johannes)</author>
    <content:encoded>
    Not yet. But might be interesting to add. 
    </content:encoded>

    <pubDate>Wed, 03 Oct 2012 01:44:24 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25018</guid>
    
</item>
<item>
    <title>Changha Lim: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25017</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (Changha Lim)</author>
    <content:encoded>
    Great job!

Do you support persist connection? 
    </content:encoded>

    <pubDate>Wed, 03 Oct 2012 01:31:33 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25017</guid>
    
</item>
<item>
    <title>gggeek: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25016</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (gggeek)</author>
    <content:encoded>
    @James avoiding authentication overhead can make sense - even though I consider the mysql connection time and network protocol to be already highly optimized (I compared to Oracle using a standard cms and the difference was huge).
But in the example given above, it seems that the mysql login is also done, isn&#039;t it?

@Johannes sure I will benchmark, and come back with results.
Since we&#039;re using an ORM, there&#039;s a lot of table access based on primary keys.
Do you think that mapping all of them (about 100) for memcached access could work? 
    </content:encoded>

    <pubDate>Tue, 02 Oct 2012 03:20:45 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25016</guid>
    
</item>
<item>
    <title>James Day: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25015</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (James Day)</author>
    <content:encoded>
    Nice!

Read only transactions are another good opportunity to exploit in 5.6. Either setting autocommit on or using START TRANSACTION READ ONLY.

gggeek, consider the round trips of the traditional MySQL SQL login and the CPU cost of the authentication process on the client compared to the CPU cost of a regular expression. The memcached API should be an easy win based on eliminating some round trips.

Views are my own, for an official Oracle view, consult a PR person.

James Day, MySQL Senior Principal Support Engineer, Oracle. 
    </content:encoded>

    <pubDate>Mon, 01 Oct 2012 21:46:06 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25015</guid>
    
</item>
<item>
    <title>Christopher Kunz: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25014</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (Christopher Kunz)</author>
    <content:encoded>
    &quot;Scaling web servers is simpler than scaling web servers&quot;
I presume the second web is supposed to be a DB. 
    </content:encoded>

    <pubDate>Mon, 01 Oct 2012 16:36:13 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25014</guid>
    
</item>
<item>
    <title>Johannes: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25013</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (Johannes)</author>
    <content:encoded>
    Hi
about your 1st question: I can tell zou that in the current implementation it is less (as this plugin is using a relatively simple regular expression where the precompiled regexp is cached in PHP) but even if it wasn&#039;t you have a benefit: Scaling web servers is simpler than scaling web servers, so when ofloading work this can be beneficial. Though, in general the best answer is: Benchmark it yourself. These performance differences depend on soooooo many things in your setup. Any  generic benchmark will not tell you much for your case
For the 2nd question: I haven&#039;t measured this but the innodb server plugin is relatively low on the server. Directly talking to InnoDB. Therefore it is not using the query cache, but it is using InnoDB &#039;s buffer pool etc. 
    </content:encoded>

    <pubDate>Mon, 01 Oct 2012 15:49:59 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25013</guid>
    
</item>
<item>
    <title>gggeek: MySQL, Memcache, PHP revised</title>
    <link>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#c25010</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=169</wfw:comment>

    

    <author>nospam@example.com (gggeek)</author>
    <content:encoded>
    wow, massive!

a question though: I imagine that the mysqlnd_memcache extension would add some parsing overhead to every mysql query executed. How can we be sure that this overhead is less than the gain in response time we get from using the memcache-api of mysql instead of its native api?

and then a 2nd question: is there any difference in memory usage (both on the php and mysql server sides) for using memcached protocol instead of mysql one?
E.g. is data fetched via memcache stored in the mysql query cache? 
    </content:encoded>

    <pubDate>Mon, 01 Oct 2012 08:36:10 +0200</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/169-guid.html#c25010</guid>
    
</item>
<item>
    <title>Wlad: Upcoming talks</title>
    <link>http://schlueters.de/blog/archives/165-Upcoming-talks.html#c24964</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/165-Upcoming-talks.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=165</wfw:comment>

    

    <author>nospam@example.com (Wlad)</author>
    <content:encoded>
    Konnectoren ist Denglish:)? Richtiges Deutsch hat doch mehr &#039;K&#039;s, d.h Konnektoren? 
    </content:encoded>

    <pubDate>Thu, 12 Jan 2012 13:23:59 +0100</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/165-guid.html#c24964</guid>
    
</item>
<item>
    <title>Hanna: High Performance PHP Session Storage on Scale</title>
    <link>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#c24952</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=164</wfw:comment>

    

    <author>nospam@example.com (Hanna)</author>
    <content:encoded>
    Haha, I miss the good old time, everything was easier and slower. &lt;img src=&quot;http://schlueters.de/blog/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
I like the idea of a central repository. 
    </content:encoded>

    <pubDate>Tue, 29 Nov 2011 19:40:57 +0100</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/164-guid.html#c24952</guid>
    
</item>
<item>
    <title>vlad s.: High Performance PHP Session Storage on Scale</title>
    <link>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#c24942</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=164</wfw:comment>

    

    <author>nospam@example.com (vlad s.)</author>
    <content:encoded>
    I would cut this post in half. 
    </content:encoded>

    <pubDate>Sat, 19 Nov 2011 18:59:02 +0100</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/164-guid.html#c24942</guid>
    
</item>
<item>
    <title>gggeek: High Performance PHP Session Storage on Scale</title>
    <link>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#c24938</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=164</wfw:comment>

    

    <author>nospam@example.com (gggeek)</author>
    <content:encoded>
    I remember using phplib for session management too. Those where the days!... well, actually, I was so glad when php native session management came around &lt;img src=&quot;http://schlueters.de/blog/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Fri, 18 Nov 2011 14:10:36 +0100</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/164-guid.html#c24938</guid>
    
</item>
<item>
    <title>Johannes: High Performance PHP Session Storage on Scale</title>
    <link>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#c24935</link>
            <category></category>
    
    <comments>http://schlueters.de/blog/archives/164-High-Performance-PHP-Session-Storage-on-Scale.html#comments</comments>
    <wfw:comment>http://schlueters.de/blog/wfwcomment.php?cid=164</wfw:comment>

    

    <author>nospam@example.com (Johannes)</author>
    <content:encoded>
    Oh, the good old days.  Back when my 90 MHz Pentium was good enough to host my site and MySQL 3.23 did all I needed from a database &lt;img src=&quot;http://schlueters.de/blog/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Thu, 17 Nov 2011 21:41:24 +0100</pubDate>
    <guid isPermaLink="false">http://schlueters.de/blog/archives/164-guid.html#c24935</guid>
    
</item>

</channel>
</rss>