<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Alan Seiden's Information Technology</title>
	<atom:link href="http://www.alanseiden.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alanseiden.com</link>
	<description>PHP, IBM i, and solutions in technology</description>
	<lastBuildDate>Thu, 26 Aug 2010 17:01:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Aaron Hawley</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8984</link>
		<dc:creator>Aaron Hawley</dc:creator>
		<pubDate>Thu, 26 Aug 2010 17:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8984</guid>
		<description>Yes, usually while building a query you might need to print it and see how it&#039;s coming.  I should add, if a query fails to execute, I don&#039;t believe there&#039;s a way to retrieve it from the profiler, so I&#039;ve had to use __toString() in that case as well.</description>
		<content:encoded><![CDATA[<p>Yes, usually while building a query you might need to print it and see how it&#8217;s coming.  I should add, if a query fails to execute, I don&#8217;t believe there&#8217;s a way to retrieve it from the profiler, so I&#8217;ve had to use __toString() in that case as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Alan Seiden</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8976</link>
		<dc:creator>Alan Seiden</dc:creator>
		<pubDate>Tue, 24 Aug 2010 22:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8976</guid>
		<description>&lt;a href=&quot;#comment-8975&quot; rel=&quot;nofollow&quot;&gt;@Aaron Hawley &lt;/a&gt; 
Your comment clarifies the best use of each approach. It seems that: 

__toString() is the more flexible option, because it can retrieve SQL for queries that you may or may not have run yet. The __toString() method doesn&#039;t care if you actually run the query.

Zend_Db_Profiler with getQuery(), on the other hand, retrieves SQL for the queries that you actually ran, including any differences created by pagination. It can only be used after the fact, but will be more accurate.

Sound right?</description>
		<content:encoded><![CDATA[<p><a href="#comment-8975" rel="nofollow">@Aaron Hawley </a><br />
Your comment clarifies the best use of each approach. It seems that: </p>
<p>__toString() is the more flexible option, because it can retrieve SQL for queries that you may or may not have run yet. The __toString() method doesn&#8217;t care if you actually run the query.</p>
<p>Zend_Db_Profiler with getQuery(), on the other hand, retrieves SQL for the queries that you actually ran, including any differences created by pagination. It can only be used after the fact, but will be more accurate.</p>
<p>Sound right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Aaron Hawley</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8975</link>
		<dc:creator>Aaron Hawley</dc:creator>
		<pubDate>Tue, 24 Aug 2010 21:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8975</guid>
		<description>Sure.  Zend_Paginator takes a Zend_Db_Select object and then modifies it (puts FETCH FIRST 20 ROWS ONLY, or LIMIT 20, or whatever your flavor of DBMS requires).  These modifications are made to the SQL at the time of sending them to the server.  There&#039;s no way to retrieve the query that was *sent* with __toString.  Only asking the Profiler will give you the *actual* query used.  That&#039;s been my experience, at least.

This *all* assumes you are interested in the row-limited SQL.  I know I am!</description>
		<content:encoded><![CDATA[<p>Sure.  Zend_Paginator takes a Zend_Db_Select object and then modifies it (puts FETCH FIRST 20 ROWS ONLY, or LIMIT 20, or whatever your flavor of DBMS requires).  These modifications are made to the SQL at the time of sending them to the server.  There&#8217;s no way to retrieve the query that was *sent* with __toString.  Only asking the Profiler will give you the *actual* query used.  That&#8217;s been my experience, at least.</p>
<p>This *all* assumes you are interested in the row-limited SQL.  I know I am!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Alan Seiden</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8974</link>
		<dc:creator>Alan Seiden</dc:creator>
		<pubDate>Tue, 24 Aug 2010 21:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8974</guid>
		<description>&lt;a href=&quot;#comment-8973&quot; rel=&quot;nofollow&quot;&gt;@Aaron Hawley &lt;/a&gt; 
Aaron, thanks for the comment. Could you elaborate?</description>
		<content:encoded><![CDATA[<p><a href="#comment-8973" rel="nofollow">@Aaron Hawley </a><br />
Aaron, thanks for the comment. Could you elaborate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Aaron Hawley</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8973</link>
		<dc:creator>Aaron Hawley</dc:creator>
		<pubDate>Tue, 24 Aug 2010 21:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8973</guid>
		<description>Since pagination is used for most all queries these days (thank you Zend_Paginator!) the former has to be used in order to log queries.</description>
		<content:encoded><![CDATA[<p>Since pagination is used for most all queries these days (thank you Zend_Paginator!) the former has to be used in order to log queries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Alan Seiden</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8971</link>
		<dc:creator>Alan Seiden</dc:creator>
		<pubDate>Tue, 24 Aug 2010 16:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8971</guid>
		<description>&lt;a href=&quot;#comment-8961&quot; rel=&quot;nofollow&quot;&gt;@Justin Dearing &lt;/a&gt; 
Justin, yes, there is a database monitor (DBMON): http://www-01.ibm.com/support/docview.wss?uid=nas17b5027600264b165862575fb00710d03</description>
		<content:encoded><![CDATA[<p><a href="#comment-8961" rel="nofollow">@Justin Dearing </a><br />
Justin, yes, there is a database monitor (DBMON): <a href="http://www-01.ibm.com/support/docview.wss?uid=nas17b5027600264b165862575fb00710d03" rel="nofollow">http://www-01.ibm.com/support/docview.wss?uid=nas17b5027600264b165862575fb00710d03</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Patrick Barroca</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8969</link>
		<dc:creator>Patrick Barroca</dc:creator>
		<pubDate>Tue, 24 Aug 2010 12:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8969</guid>
		<description>Well, the magic __toString() is called when you try to echo an object, then your exemple can be even straight :

echo $select;

It is also called when casting :

$sql = (string)$select;</description>
		<content:encoded><![CDATA[<p>Well, the magic __toString() is called when you try to echo an object, then your exemple can be even straight :</p>
<p>echo $select;</p>
<p>It is also called when casting :</p>
<p>$sql = (string)$select;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Two techniques for retrieving SQL from Zend Framework&#8217;s database components by Alan Seiden&#039;s Information Technology » Two techniques for &#8230; &#124; Programming Blog Imagik.org</title>
		<link>http://www.alanseiden.com/2010/08/23/two-techniques-for-retrieving-sql-from-zend-framework-database-components/comment-page-1/#comment-8965</link>
		<dc:creator>Alan Seiden&#039;s Information Technology » Two techniques for &#8230; &#124; Programming Blog Imagik.org</dc:creator>
		<pubDate>Mon, 23 Aug 2010 23:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=454#comment-8965</guid>
		<description>[...] original post here: Alan Seiden&#039;s Information Technology » Two techniques for &#8230;      No [...]</description>
		<content:encoded><![CDATA[<p>[...] original post here: Alan Seiden&#039;s Information Technology » Two techniques for &#8230;      No [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Maximize Zend Server PHP performance with Apache compression by Alan Seiden</title>
		<link>http://www.alanseiden.com/2010/08/13/maximize-zend-server-performance-with-apache-compression/comment-page-1/#comment-8963</link>
		<dc:creator>Alan Seiden</dc:creator>
		<pubDate>Mon, 23 Aug 2010 22:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=439#comment-8963</guid>
		<description>Keith,

Compressed content gets decompressed when it reaches the user&#039;s web browser. The browser controls this process, first sending a &quot;gzip&quot; header that asks the server to use compression, if possible, and then decompressing the content that&#039;s received from the server.

As for your future Citrix environment (where web browsers will run in virtual machines on centralized servers in your data center), the benefits of compression will still be there, but you will probably notice less of an improvement than than if your users connected with browsers outside the network. 

With compression, the improvements in speed always depend on these factors: 
1. the size and compression ratio of your content (how large the files are to start with and how small they become when compressed)
2. network traffic and speed

Larger files and slower networks (and internet connections) will benefit the most from compression. Smaller files and faster networks reduce the benefits.

Compression/decompression does require CPU on the server and browser, so if the files are small, and served over a fast intranet, the trade-off might not be worth it. 

The only way to know for sure is to try with your actual website and network. I hope you&#039;ll give the technique a try and, perhaps, add a comment here to tell us how it went.

Alan</description>
		<content:encoded><![CDATA[<p>Keith,</p>
<p>Compressed content gets decompressed when it reaches the user&#8217;s web browser. The browser controls this process, first sending a &#8220;gzip&#8221; header that asks the server to use compression, if possible, and then decompressing the content that&#8217;s received from the server.</p>
<p>As for your future Citrix environment (where web browsers will run in virtual machines on centralized servers in your data center), the benefits of compression will still be there, but you will probably notice less of an improvement than than if your users connected with browsers outside the network. </p>
<p>With compression, the improvements in speed always depend on these factors:<br />
1. the size and compression ratio of your content (how large the files are to start with and how small they become when compressed)<br />
2. network traffic and speed</p>
<p>Larger files and slower networks (and internet connections) will benefit the most from compression. Smaller files and faster networks reduce the benefits.</p>
<p>Compression/decompression does require CPU on the server and browser, so if the files are small, and served over a fast intranet, the trade-off might not be worth it. </p>
<p>The only way to know for sure is to try with your actual website and network. I hope you&#8217;ll give the technique a try and, perhaps, add a comment here to tell us how it went.</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Maximize Zend Server PHP performance with Apache compression by Keith Livingood</title>
		<link>http://www.alanseiden.com/2010/08/13/maximize-zend-server-performance-with-apache-compression/comment-page-1/#comment-8962</link>
		<dc:creator>Keith Livingood</dc:creator>
		<pubDate>Mon, 23 Aug 2010 21:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.alanseiden.com/?p=439#comment-8962</guid>
		<description>Alan,

I have a question concerning your article on Apache compression.  In the near future, we are going to a virtual desktop environment/Power 7.1 system i blade and I am wondering if this tip on Apache compression would still be beneficial.  

In today&#039;s environment with Apache compression turned on for Zend Server, I understand that a php page would be compressed down and sent over the wire to the user&#039;s desktop.  Once it gets to the user&#039;s desktop, does it decompress to present itself?  

In a Citrix environment, the creation of the page and the sending of the page would all take place in our data center......could we still gain time if we used the Apache compression?  Any help would be appreciated. 

Keith</description>
		<content:encoded><![CDATA[<p>Alan,</p>
<p>I have a question concerning your article on Apache compression.  In the near future, we are going to a virtual desktop environment/Power 7.1 system i blade and I am wondering if this tip on Apache compression would still be beneficial.  </p>
<p>In today&#8217;s environment with Apache compression turned on for Zend Server, I understand that a php page would be compressed down and sent over the wire to the user&#8217;s desktop.  Once it gets to the user&#8217;s desktop, does it decompress to present itself?  </p>
<p>In a Citrix environment, the creation of the page and the sending of the page would all take place in our data center&#8230;&#8230;could we still gain time if we used the Apache compression?  Any help would be appreciated. </p>
<p>Keith</p>
]]></content:encoded>
	</item>
</channel>
</rss>
