<?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: Loading a MySQL database in memory (with some Ruby help)</title>
	<atom:link href="http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 09:23:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Doyle</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-1525</link>
		<dc:creator>John Doyle</dc:creator>
		<pubDate>Sat, 13 Jun 2009 10:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-1525</guid>
		<description>Many thanks just what I was looking for, innodb_buffer_pool_size large it is.</description>
		<content:encoded><![CDATA[<p>Many thanks just what I was looking for, innodb_buffer_pool_size large it is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: urbanus</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-1421</link>
		<dc:creator>urbanus</dc:creator>
		<pubDate>Thu, 21 Aug 2008 03:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-1421</guid>
		<description>@gari &lt;-- COMMENT SPAM

Note the lame comment and the website link.

Do the &#039;Net a favour and purge stupid posts like that, thanks.</description>
		<content:encoded><![CDATA[<p>@gari &lt;&#8211; COMMENT SPAM</p>
<p>Note the lame comment and the website link.</p>
<p>Do the &#8216;Net a favour and purge stupid posts like that, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gari</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-1061</link>
		<dc:creator>gari</dc:creator>
		<pubDate>Tue, 28 Aug 2007 19:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-1061</guid>
		<description>Great site!0</description>
		<content:encoded><![CDATA[<p>Great site!0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Cole</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-935</link>
		<dc:creator>Jeremy Cole</dc:creator>
		<pubDate>Fri, 15 Jun 2007 17:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-935</guid>
		<description>If you have enough memory to hold the entire database in memory, why not just make innodb_buffer_pool_size large enough to do so.  The speed should be the same (or similar) as moving the tables themselves into the MEMORY engine, without the data loss problems.

In my experience, MEMORY hasn&#039;t been all that useful.</description>
		<content:encoded><![CDATA[<p>If you have enough memory to hold the entire database in memory, why not just make innodb_buffer_pool_size large enough to do so.  The speed should be the same (or similar) as moving the tables themselves into the MEMORY engine, without the data loss problems.</p>
<p>In my experience, MEMORY hasn&#8217;t been all that useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Bernal</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-926</link>
		<dc:creator>Jorge Bernal</dc:creator>
		<pubDate>Thu, 14 Jun 2007 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-926</guid>
		<description>Wow, that&#039;s easy! Thanks</description>
		<content:encoded><![CDATA[<p>Wow, that&#8217;s easy! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giuseppe Maxia</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-925</link>
		<dc:creator>Giuseppe Maxia</dc:creator>
		<pubDate>Thu, 14 Jun 2007 16:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-925</guid>
		<description>A RAM disk on Mac OS X is quite easy, actually:

http://osxdaily.com/2007/03/23/create-a-ram-disk-in-mac-os-x/

Cheers

Giuseppe</description>
		<content:encoded><![CDATA[<p>A RAM disk on Mac OS X is quite easy, actually:</p>
<p><a href="http://osxdaily.com/2007/03/23/create-a-ram-disk-in-mac-os-x/" rel="nofollow">http://osxdaily.com/2007/03/23/create-a-ram-disk-in-mac-os-x/</a></p>
<p>Cheers</p>
<p>Giuseppe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Bernal</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-924</link>
		<dc:creator>Jorge Bernal</dc:creator>
		<pubDate>Thu, 14 Jun 2007 15:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-924</guid>
		<description>I thought about a ramdisk for this, but I&#039;m using OSX and I don&#039;t know how to do it by now</description>
		<content:encoded><![CDATA[<p>I thought about a ramdisk for this, but I&#8217;m using OSX and I don&#8217;t know how to do it by now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giuseppe Maxia</title>
		<link>http://www.jorgebernal.info/dev-random/loading-a-mysql-database-in-memory-with-some-ruby-help/comment-page-1#comment-923</link>
		<dc:creator>Giuseppe Maxia</dc:creator>
		<pubDate>Thu, 14 Jun 2007 14:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://koke.amedias.org/articles/2007/06/14/loading-a-mysql-database-in-memory-with-some-ruby-help/#comment-923</guid>
		<description>Jorge,

instead of changing the engine type, there is an easier way.
Move the data directory to an in-memory filesystem.
In Linux, it&#039;s usually in /dev/shm.

1. stop the server

2. cd /usr/local/mysql
3. mv data data1
4. cp -R data1 /dev/shm/data
5. ln -s /dev/shm/data /usr/local/mysql/data

6. start the server

Now the data is in memory, without any limitation.
(Warning: the data is in memory only! If your server shuts down, you lose all)

When you are finished, copy the data from the in-memory filesystem to the hard disk.


Cheers

Giuseppe</description>
		<content:encoded><![CDATA[<p>Jorge,</p>
<p>instead of changing the engine type, there is an easier way.<br />
Move the data directory to an in-memory filesystem.<br />
In Linux, it&#8217;s usually in /dev/shm.</p>
<p>1. stop the server</p>
<p>2. cd /usr/local/mysql<br />
3. mv data data1<br />
4. cp -R data1 /dev/shm/data<br />
5. ln -s /dev/shm/data /usr/local/mysql/data</p>
<p>6. start the server</p>
<p>Now the data is in memory, without any limitation.<br />
(Warning: the data is in memory only! If your server shuts down, you lose all)</p>
<p>When you are finished, copy the data from the in-memory filesystem to the hard disk.</p>
<p>Cheers</p>
<p>Giuseppe</p>
]]></content:encoded>
	</item>
</channel>
</rss>
