<?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 on: 700 queries for one page load?</title>
	<atom:link href="http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/feed/" rel="self" type="application/rss+xml" />
	<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/</link>
	<description>Ideas on Databases, Logic, and Language by Jeff Davis</description>
	<lastBuildDate>Tue, 18 Oct 2011 07:43:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: David Fetter</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-21</link>
		<dc:creator>David Fetter</dc:creator>
		<pubDate>Tue, 20 Nov 2007 06:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-21</guid>
		<description>It&#039;s not faerie-land when Postgres has this amazing ability to return useful serialized data structures at each row and column. :-)</description>
		<content:encoded><![CDATA[<p>It&#8217;s not faerie-land when Postgres has this amazing ability to return useful serialized data structures at each row and column. <img src='http://thoughts.j-davis.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Davis</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-20</link>
		<dc:creator>Jeff Davis</dc:creator>
		<pubDate>Tue, 20 Nov 2007 03:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-20</guid>
		<description>I&#039;m sure if you get creative enough, you can think of some kind of use for many queries to load one page.

But 100 queries for one page load is a red flag. At a minimum you should do a double-take on a number like that, and re-examine the design that lead to that outcome.

The fact is that many of those RT queries are *duplicates*. I believe many of the rest are just an artifact of poor design.

Good design indicates that you issue about one query for each different type of information that you need.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure if you get creative enough, you can think of some kind of use for many queries to load one page.</p>
<p>But 100 queries for one page load is a red flag. At a minimum you should do a double-take on a number like that, and re-examine the design that lead to that outcome.</p>
<p>The fact is that many of those RT queries are *duplicates*. I believe many of the rest are just an artifact of poor design.</p>
<p>Good design indicates that you issue about one query for each different type of information that you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-19</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Tue, 20 Nov 2007 01:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-19</guid>
		<description>0 or 1 query per page load? Why don&#039;t you go back to the magic land with the faeries whence you obviously came?

100 is on the high side, yes. I&#039;d say 20 and up would be performed for a page performing some work on a very well written system.

I used to work somewhere where we had around 8-900 queries per page load. They were all lightning fast mySQL selects, and not causing any sort of a bottleneck</description>
		<content:encoded><![CDATA[<p>0 or 1 query per page load? Why don&#8217;t you go back to the magic land with the faeries whence you obviously came?</p>
<p>100 is on the high side, yes. I&#8217;d say 20 and up would be performed for a page performing some work on a very well written system.</p>
<p>I used to work somewhere where we had around 8-900 queries per page load. They were all lightning fast mySQL selects, and not causing any sort of a bottleneck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Fetter</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-18</link>
		<dc:creator>David Fetter</dc:creator>
		<pubDate>Mon, 19 Nov 2007 04:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-18</guid>
		<description>The harsh words were completely justified. Generally you&#039;re shooting for 0 or 1 queries per page load, and 100 is ludicrously too many.</description>
		<content:encoded><![CDATA[<p>The harsh words were completely justified. Generally you&#8217;re shooting for 0 or 1 queries per page load, and 100 is ludicrously too many.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Davis</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-17</link>
		<dc:creator>Jeff Davis</dc:creator>
		<pubDate>Sun, 18 Nov 2007 14:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-17</guid>
		<description>I&#039;ll post a report to the list on Monday.

As I said most of that was because the static content was also causing database access, which we can avoid (bringing us down to about 100 queries).

Sorry for the harsh words in the post, but needless to say I was stunned by the sheer volume of database queries. Even 100 queries is a lot for one page load.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll post a report to the list on Monday.</p>
<p>As I said most of that was because the static content was also causing database access, which we can avoid (bringing us down to about 100 queries).</p>
<p>Sorry for the harsh words in the post, but needless to say I was stunned by the sheer volume of database queries. Even 100 queries is a lot for one page load.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://thoughts.j-davis.com/2007/11/17/700-queries-for-one-page-load/comment-page-1/#comment-16</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Sun, 18 Nov 2007 11:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://davisjeff.wordpress.com/?p=28#comment-16</guid>
		<description>700 eh? That sounds...wrong. And like a prefetch or a caching layer isn&#039;t working right. Would you be up for helping us triage this on rt-devel@lists.bestpractical.com? I&#039;m not going to pretend that RT is a paragon of relational design, but that sounds like something is broken. And we do like to fix broken things ;-)

Best,
Jesse (RT is generally considered to be all my fault)</description>
		<content:encoded><![CDATA[<p>700 eh? That sounds&#8230;wrong. And like a prefetch or a caching layer isn&#8217;t working right. Would you be up for helping us triage this on <a href="mailto:rt-devel@lists.bestpractical.com">rt-devel@lists.bestpractical.com</a>? I&#8217;m not going to pretend that RT is a paragon of relational design, but that sounds like something is broken. And we do like to fix broken things <img src='http://thoughts.j-davis.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Best,<br />
Jesse (RT is generally considered to be all my fault)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

