<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>this.rand() &#187; links</title>
	<atom:link href="http://www.thisrand.com/tag/links/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisrand.com</link>
	<description>the life of Ryan Meinzer and Jessica Meinzer</description>
	<lastBuildDate>Mon, 19 Sep 2011 01:41:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to fix WP ECommerce</title>
		<link>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce</link>
		<comments>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce#comments</comments>
		<pubDate>Mon, 30 Aug 2010 22:57:50 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[writings]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[Royalty Interest]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=830</guid>
		<description><![CDATA[On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I...]]></description>
			<content:encoded><![CDATA[<p>On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I understood just how horribly written this plugin is.</p>
<p>Now, as someone that has been doing development long enough to know, there are times that code just gets away from the development team and becomes a mess unto itself.  It happens, especially in the OSS world where code reviews are few if ever.  But, as I read the forums for this thing, the developers are just fooling themselves thinking the code is in good shape.</p>
<p>Here are a few basic suggestions:<br />
1) Check to see if the page needs to execute the plugin.  If it doesnt, dont do it.  There is no reason to increase the number of queries by an order of magantuide when I am on a page that has no WP Ecommerce functionality.<br />
2) Clean up the queries.  For example:<br />
SELECT `id` FROM `wp_product_list` WHERE `active` IN(&#8217;1&#8242;)<br />
should be<br />
SELECT `id` FROM `wp_product_list` WHERE `active` = 1<br />
It is more effiecent.</p>
<p>3) Index the tables!  The query above doesnt use an index.  That is right folks, the field &#8220;active&#8221; in product_list is not indexed.  This is easy and simple.</p>
<p>4) Use arrays or some other data structure for complex data.  Dont use the same basic query over and over again.  Example:</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F08%2Fhow-to-fix-wp-ecommerce&amp;title=How%20to%20fix%20WP%20ECommerce" id="wpa2a_2"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2000 Castello D&#8217;Albola Chianti Classico Reserva</title>
		<link>http://www.thisrand.com/2008/12/2000-castello-dalbola-chianti-classico-reserva</link>
		<comments>http://www.thisrand.com/2008/12/2000-castello-dalbola-chianti-classico-reserva#comments</comments>
		<pubDate>Mon, 22 Dec 2008 23:34:15 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[wine]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[reviews]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=508</guid>
		<description><![CDATA[2000 Castello D&#8217;Albola Chianti Classico Reserva Sangiovese $29 Score: 93 We first had Castello D&#8217;Albola Chianti Classico Reserva when eating at Sambuca&#8217;s in Addison.  It paired wonderfully with the steak...]]></description>
			<content:encoded><![CDATA[<p>2000 Castello D&#8217;Albola Chianti Classico Reserva<br />
Sangiovese<br />
$29<br />
Score: 93</p>
<p>We first had <a target="_blank" href="http://www.albola.it/english/home.htm" target="_blank">Castello D&#8217;Albola Chianti Classico Reserva</a> when eating at <a target="_blank" href="http://www.sambucarestaurant.com/" target="_blank">Sambuca&#8217;s</a> in <a target="_blank" href="http://www.addisontexas.net/" target="_blank">Addison</a>.  It paired wonderfully with the steak I had and was decent with the herb chicken Jessica ate.</p>
<p>That was several years ago, and several cases of this wine later, it is official&#8230;.we have finally polished off the final bottle.  Feel free to cry, we almost did.</p>
<p>This is an excellent CCR, but a little difficult to find in your local retailer, around here at least.  It, of course, pairs the best with red meat and other strong flavors, like herb encrusted chicken, or pork dishes.  Strong currant flavors with a woody aftertaste.  This is an excellently made wine that needs to be consumed now.  It is ready and probably a little past peak already, but still highly recommended and ready to drink.</p>
<p>If you want more information, check out the <a target="_blank" href="http://www.cellartracker.com/wine.asp?iWine=109643" target="_blank">CellarTracker page</a> on this great wine!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2008%2F12%2F2000-castello-dalbola-chianti-classico-reserva&amp;title=2000%20Castello%20D%26%238217%3BAlbola%20Chianti%20Classico%20Reserva" id="wpa2a_4"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2008/12/2000-castello-dalbola-chianti-classico-reserva/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

