<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: MySQL JDBC Memory Usage on Large ResultSet</title>
	<atom:link href="http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/</link>
	<description>Software Development and Other Random Stuff</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:52:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Große (riesige!) ResultSets und MySQL &#171; msaure.com</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-396</link>
		<dc:creator>Große (riesige!) ResultSets und MySQL &#171; msaure.com</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-396</guid>
		<description>[...] http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/ wird eine einfache Lösung angeboten, die im Wesentlichen zu folgender Codezeile [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/" rel="nofollow">http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/</a> wird eine einfache Lösung angeboten, die im Wesentlichen zu folgender Codezeile [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek Anand</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-388</link>
		<dc:creator>Abhishek Anand</dc:creator>
		<pubDate>Sat, 16 Jan 2010 15:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-388</guid>
		<description>The deadlock problem I described above was solved when I restarted my computer which also runs the mysql server</description>
		<content:encoded><![CDATA[<p>The deadlock problem I described above was solved when I restarted my computer which also runs the mysql server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek Anand</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-387</link>
		<dc:creator>Abhishek Anand</dc:creator>
		<pubDate>Sat, 16 Jan 2010 04:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-387</guid>
		<description>I need to read from one huge table, do some processing and insert into another small table.
I opened 2 connections, one for reading and another for updating.
My program starts correctly but very soon encounters a deadlock.</description>
		<content:encoded><![CDATA[<p>I need to read from one huge table, do some processing and insert into another small table.<br />
I opened 2 connections, one for reading and another for updating.<br />
My program starts correctly but very soon encounters a deadlock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek Anand</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-386</link>
		<dc:creator>Abhishek Anand</dc:creator>
		<pubDate>Fri, 15 Jan 2010 16:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-386</guid>
		<description>Thanks a lot for this post.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Christensen</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-380</link>
		<dc:creator>Ben Christensen</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-380</guid>
		<description>It could be many things, row locking, new indexes, thread-thrashing in MySQL, CPU or IO constraints.

Anytime you&#039;re doing something in parallell on a shared resource any of these or other issues can cause performance issues.

If you do the query without the parallel inserts does it perform in the 10 minute range?

If I was in your position I&#039;d start profiling and testing the different individual components and then combining them to see the impact of parallel execution to isolate what the issue really is.</description>
		<content:encoded><![CDATA[<p>It could be many things, row locking, new indexes, thread-thrashing in MySQL, CPU or IO constraints.</p>
<p>Anytime you&#8217;re doing something in parallell on a shared resource any of these or other issues can cause performance issues.</p>
<p>If you do the query without the parallel inserts does it perform in the 10 minute range?</p>
<p>If I was in your position I&#8217;d start profiling and testing the different individual components and then combining them to see the impact of parallel execution to isolate what the issue really is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Christensen</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-379</link>
		<dc:creator>Ben Christensen</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-379</guid>
		<description>I don&#039;t know anything that would prevent you from doing this as long as each resultset has a separate connection. Are you experiencing table locks when doing so?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know anything that would prevent you from doing this as long as each resultset has a separate connection. Are you experiencing table locks when doing so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-378</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Fri, 13 Nov 2009 20:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-378</guid>
		<description>Great article, Thanks!
So is there no away to allow concurrent access to the tables while streaming the result set? Why this limitation if i dont care about dirty reads?</description>
		<content:encoded><![CDATA[<p>Great article, Thanks!<br />
So is there no away to allow concurrent access to the tables while streaming the result set? Why this limitation if i dont care about dirty reads?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-377</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-377</guid>
		<description>I have been using fetchSize(Integer.MIN_VALUE) for a long time and it was working perfect until now. I use MySQL, java 1.6, mysql-connector-java-5.1.7-bin.jar and InoDB tables.
Since a month ago when the query is executed it will take a long time untill it starts processing the results from the resultSet. The query matches about 2M rows. It use to take 10 min untill rows processing started. Now it&#039;s taking about 2 hours.
Parallelly I have another process wich is doing lots of inserts to that table (I also had it before but with less number of inserts). Could this be causing some bloking that makes the query take that long?
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I have been using fetchSize(Integer.MIN_VALUE) for a long time and it was working perfect until now. I use MySQL, java 1.6, mysql-connector-java-5.1.7-bin.jar and InoDB tables.<br />
Since a month ago when the query is executed it will take a long time untill it starts processing the results from the resultSet. The query matches about 2M rows. It use to take 10 min untill rows processing started. Now it&#8217;s taking about 2 hours.<br />
Parallelly I have another process wich is doing lots of inserts to that table (I also had it before but with less number of inserts). Could this be causing some bloking that makes the query take that long?<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emm</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-374</link>
		<dc:creator>Emm</dc:creator>
		<pubDate>Tue, 06 Oct 2009 21:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-374</guid>
		<description>Nice suggestion.</description>
		<content:encoded><![CDATA[<p>Nice suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Myšlenky dne otce Fura &#187; Blog Archive &#187; Import velkých dat do MySQL</title>
		<link>http://benjchristensen.com/2008/05/27/mysql-jdbc-memory-usage-on-large-resultset/#comment-372</link>
		<dc:creator>Myšlenky dne otce Fura &#187; Blog Archive &#187; Import velkých dat do MySQL</dc:creator>
		<pubDate>Tue, 06 Oct 2009 12:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://benjchristensen.wordpress.com/?p=59#comment-372</guid>
		<description>[...] Zdrojový článek, který mě navedl na řešení OOM v případě rozsáhlých ResultSetů [...]</description>
		<content:encoded><![CDATA[<p>[...] Zdrojový článek, který mě navedl na řešení OOM v případě rozsáhlých ResultSetů [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
