<?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>Marc Sturlese &#187; MySQL</title>
	<atom:link href="http://www.marcsturlese.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcsturlese.com</link>
	<description>Life, code and stuff</description>
	<lastBuildDate>Sun, 27 Jun 2010 14:45:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CloudCamp Barcelona 2009</title>
		<link>http://www.marcsturlese.com/2009/06/18/cloudcamp-barcelona-2009/</link>
		<comments>http://www.marcsturlese.com/2009/06/18/cloudcamp-barcelona-2009/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 23:43:49 +0000</pubDate>
		<dc:creator>Marc Sturlese</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Abicloud]]></category>
		<category><![CDATA[CloudCamp]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Hadoop]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Sqoop]]></category>

		<guid isPermaLink="false">http://www.marcsturlese.com/?p=134</guid>
		<description><![CDATA[Last Monday took place in Barcelona the first CloudCamp ever done in the city. Altough I was expecting more technical stuff it was good to be there and listen to what people have to say. The first part of the event consisted of some quick explanations from different companies related with cloud computing. Basically, were [...]]]></description>
			<content:encoded><![CDATA[<p>Last Monday took place in Barcelona the first <a title="CloudCamp" href="http://www.cloudcamp.com/?page_id=902" target="_blank"><strong>CloudCamp</strong></a> ever done in the city. Altough I was expecting more technical stuff it was good to be there and listen to what people have to say.<br />
The first part of the event consisted of some quick explanations from different companies related with cloud computing. Basically, were explaining the cloud choises and advantages they were offering. The one I enjoyed the most was the Abiquo&#8217;s presentation of their new software, <a title="Abicloud" href="http://www.abiquo.com/en/products/abicloud" target="_blank">Abicloud</a>. Through a really nice GUI developed with Flex, Abicloud, among other stuff, allows you to set up virtual machines configuring automatically an apache server, mysql database&#8230; with just a few drag &amp; drop actions. You can use you own machines, servers from an ISP or even combine both. Elastically, you can increase or decrease the number of virtual machines. This can be very convenient for sites with hight traffic peaks or testing environements.<br />
I am not going to talk more about it as with a five minutes presentation just could get the main idea. Can&#8217;t wait to have some free time to start playing with it. Just will add that Abicloud is completely open source.</p>
<p>After the quick talks, the following topics were discussed:</p>
<ul>
<li> What guarantees do I have with <strong>Cloud Computing</strong>?</li>
<li> What legal issues are there with your data?</li>
<li> Are standards important? If so, wich ones?</li>
<li> What is the benefit for a company with only a few dozens of servers?</li>
<li> Best platfrom to starting a cloud hosting company?</li>
<li> Is cloud computing green? If so, what?</li>
</ul>
<p>In the end people were divided in groups depending on in wich topic wanted to go deeper. I attended to &#8220;How to develope applications that are going to run in the cloud&#8221;. There I could have an interesting quick chat about application scalability and how to dump mysql databases to <strong>HDFS</strong> using the Cloudera&#8217;s tool <strong><a title="Hadoop's Sqoop" href="http://www.cloudera.com/hadoop-sqoop#getting_sqoop" target="_blank">Sqoop</a></strong>.</p>
<p><img class="aligncenter size-medium wp-image-140" title="cloudcamp" src="http://www.marcsturlese.com/wp-content/images/cloudcamp-300x72.jpg" alt="cloudcamp" width="260" height="62" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcsturlese.com/2009/06/18/cloudcamp-barcelona-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL streaming setting fetchSize to Integer.MIN_VALUE</title>
		<link>http://www.marcsturlese.com/2009/01/17/mysql-streaming-setting-fetchsize-to-integermin_value/</link>
		<comments>http://www.marcsturlese.com/2009/01/17/mysql-streaming-setting-fetchsize-to-integermin_value/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 19:53:04 +0000</pubDate>
		<dc:creator>Marc Sturlese</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.marcsturlese.com/?p=18</guid>
		<description><![CDATA[Have you ever experienced a java.lang.OutOfMemoryError: Java heap space due to too big selects? We can avoid that thanks to the fetchSize parameter initialized at statement creation time. FetchSize decides how many rows of the select MySQL must store in the buffer before dealing with the data. Setting that parameter to it&#8217;s minimum value we [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever experienced a <strong>java.lang.OutOfMemoryError: Java heap space</strong><br />
due to too big selects?<br />
We can avoid that thanks to the <strong>fetchSize</strong> parameter initialized at <strong>statement</strong> creation time. <strong>FetchSize</strong> decides how many rows of the select <strong>MySQL</strong> must store in the buffer before dealing with the data. Setting that parameter to it&#8217;s minimum value we will be able to do streaming with all rows.<br />
The minimum value is still pretty odd for me as I thought it would be 1 (thinking 1 was the minum numer of rows to be stored in the buffer) but it is -2^31, the minimum value java can store in an Integer!</p>
<p>Another solution would be to paginate the select setting a limit value. The problem with this is that the more selects we do, the slower <strong>MySQL</strong> will deal with rows. Doing streamaing with the <strong>fetchSize</strong> parameter we just need one select and the &#8220;rows deal with speed&#8221; does not decrease. <strong>MySQL</strong> will deal with the rows buffering by itself.</p>
<p>The <strong>statement</strong> creation should look like this:<br />
<strong><br />
try {<br />
Connection c = getConnection();<br />
stmt = c.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);<br />
stmt.setFetchSize(Integer.MIN_VALUE);<br />
&#8230;<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcsturlese.com/2009/01/17/mysql-streaming-setting-fetchsize-to-integermin_value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
