<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sum_Sybase_Logical_IO</id>
	<title>Sum Sybase Logical IO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sum_Sybase_Logical_IO"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sum_Sybase_Logical_IO&amp;action=history"/>
	<updated>2026-05-12T21:10:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=Sum_Sybase_Logical_IO&amp;diff=2323&amp;oldid=prev</id>
		<title>Brianegge: Created page with &#039;In performance tuning complex Sybase queries, I usually keep an eye on the total logical IO.  I&#039;ve created the following one-liner to be used from within sqsh to sum up the logic…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sum_Sybase_Logical_IO&amp;diff=2323&amp;oldid=prev"/>
		<updated>2010-01-20T00:12:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;In performance tuning complex Sybase queries, I usually keep an eye on the total logical IO.  I&amp;#039;ve created the following one-liner to be used from within sqsh to sum up the logic…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In performance tuning complex Sybase queries, I usually keep an eye on the total logical IO.  I&amp;#039;ve created the following one-liner to be used from within sqsh to sum up the logical IO.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;ruby&amp;quot;&amp;gt;&lt;br /&gt;
| ruby -pe &amp;#039;BEGIN{@sum=0}; if $_ =~ /logical reads: \(regular=\d+ apf=\d+ total=(\d+)\)/ then @sum += $1.to_i; end; END{puts &amp;quot;TOTAL = #{@sum}&amp;quot; }&amp;#039;&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This requires &amp;#039;&amp;#039;&amp;#039;set statistics io on;&amp;#039;&amp;#039;&amp;#039; and optionally &amp;#039;&amp;#039;&amp;#039;set showplan on;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sybase]]&lt;br /&gt;
[[Category:Ruby]]&lt;br /&gt;
[[Category:Performance]]&lt;/div&gt;</summary>
		<author><name>Brianegge</name></author>
	</entry>
</feed>