<?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>Cory O&#039;Daniel - These are just words &#187; dm-cutie</title>
	<atom:link href="http://coryodaniel.com/index.php/tag/dm-cutie/feed/" rel="self" type="application/rss+xml" />
	<link>http://coryodaniel.com</link>
	<description>Software development, thoughts, and randomness</description>
	<lastBuildDate>Thu, 17 Nov 2011 21:18:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DM Cutie, et al. 0.4 release (minor updates)</title>
		<link>http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/</link>
		<comments>http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 19:12:48 +0000</pubDate>
		<dc:creator>Cory O'Daniel</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[datamapper]]></category>
		<category><![CDATA[dm-cutie]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://coryodaniel.com/?p=347</guid>
		<description><![CDATA[I released dm-cutie, dm-cutie-ui, and dm-cutie-extras with some minor releases on gemcutter.org today.
The minor updates include a lot of help information and some tweaks to dm-cutie-ui to make it easier to use/understand (I hope).
+ add 'help' area describing all the default views
+ MysqlIndex/ Steps column info in help
+ Sort Tables Repo, Gen, Executed, Others by [...]]]></description>
			<content:encoded><![CDATA[<p>I released <a href="http://github.com/coryodaniel/dm-cutie">dm-cutie</a>, <a href="http://github.com/coryodaniel/dm-cutie">dm-cutie-ui</a>, and <a href="http://github.com/coryodaniel/dm-cutie">dm-cutie-extras</a> with some minor releases on gemcutter.org today.</p>
<p>The minor updates include a lot of help information and some tweaks to dm-cutie-ui to make it easier to use/understand (I hope).<br />
+ add 'help' area describing all the default views<br />
+ MysqlIndex/ Steps column info in help<br />
+ Sort Tables Repo, Gen, Executed, Others by alpha (routes key should be view_name)<br />
+ menu cleanup<br />
+ @records count on page<br />
+ Moved connected to<br />
+ Changed word on relationship link<br />
+ Format of page title<br />
+ Removed duplicate column on mysql_index<br />
+ Sort buttons moved</p>
<p>If you haven't installed DM Cutie, make sure your rubygems is up to date and do:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> gemcutter <span style="color: #660033;">--source</span> http:<span style="color: #000000; font-weight: bold;">//</span>gemcutter.org
gem tumble
gem <span style="color: #c20cb9; font-weight: bold;">install</span> dm-cutie <span style="color: #660033;">-v</span> 0.4.0
gem <span style="color: #c20cb9; font-weight: bold;">install</span> dm-cutie-ui <span style="color: #660033;">-v</span> 0.4.0
gem <span style="color: #c20cb9; font-weight: bold;">install</span> dm-cutie-extras <span style="color: #660033;">-v</span> 0.4.0</pre></td></tr></table></div>

<p>Information on setting DM Cutie up is in <a href="http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/">this post</a>.</p>
<p>If you want the source its available on <a href="http://github.com/coryodaniel">my github page.</a></p>
<p>I'll be adding some more interesting tracking stuff for MySQL in the next few days. Now that <a href="http://vokle.com">Vokle</a> has officially launched, I find myself with more time to work on my projects.</p>
<p>When I started this project I really wanted it to be a cool way to get information on <i>all</i> your DM storage needs. I am now realizing that DM Cutie should probably only support SQL and DO backed stores, and I'll be pairing down the internals over the next few days with that in mind.</p>
<p>Most of my database experience as far as optimizing goes is in MySQL, if anyone has some PostgreSQL or SQlite awesomeness they'd like to share, I'd really appreciate it.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=DM+Cutie%2C+et+al.+0.4+release+%28minor+updates%29+http://bit.ly/4SgPL1" title="Post to Twitter"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/&amp;title=DM+Cutie%2C+et+al.+0.4+release+%28minor+updates%29" title="Post to Digg"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-digg-big2.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/&amp;t=DM+Cutie%2C+et+al.+0.4+release+%28minor+updates%29" title="Post to Facebook"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-facebook-big2.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/&amp;title=DM+Cutie%2C+et+al.+0.4+release+%28minor+updates%29" title="Post to Reddit"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-reddit-big2.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/&amp;title=DM+Cutie%2C+et+al.+0.4+release+%28minor+updates%29" title="Post to StumbleUpon"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-su-big2.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://coryodaniel.com/index.php/2009/12/30/dm-cutie-et-al-0-4-release-minor-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DataMapper Cutie &#8211; The query tracker and profiler</title>
		<link>http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/</link>
		<comments>http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 02:05:02 +0000</pubDate>
		<dc:creator>Cory O'Daniel</dc:creator>
				<category><![CDATA[RubyDevelopment]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[datamapper]]></category>
		<category><![CDATA[dm-cutie]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://statics.coryodaniel.com/?p=339</guid>
		<description><![CDATA[So Ive been busting my butt on this query tracker for a while now. Its been finished twice and not released (once when I hated the API, and once right before 0.10 was release). But here she is, open for the hacking.
Its pretty easy to get set up, the gems are on http://gemcutter.org
To get started:

1
2
3
4
5
6
7
8
$ [...]]]></description>
			<content:encoded><![CDATA[<p>So Ive been busting my butt on this query tracker for a while now. Its been finished twice and not released (once when I hated the API, and once right before 0.10 was release). But here she is, open for the hacking.</p>
<p>Its pretty easy to get set up, the gems are on http://gemcutter.org</p>
<p>To get started:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ gem sources <span style="color:#006600; font-weight:bold;">-</span>a http:<span style="color:#006600; font-weight:bold;">//</span>gemcutter.<span style="color:#9900CC;">org</span> <span style="color:#008000; font-style:italic;"># Add gem cutter to your gem sources</span>
$ gem install dm<span style="color:#006600; font-weight:bold;">-</span>cutie
&nbsp;
<span style="color:#008000; font-style:italic;"># This is a plugin pack for dm-cutie</span>
$ gem install dm<span style="color:#006600; font-weight:bold;">-</span>cutie<span style="color:#006600; font-weight:bold;">-</span>extras 
&nbsp;
<span style="color:#008000; font-style:italic;"># this is the front-end to dm-cutie</span>
$ gem install dm<span style="color:#006600; font-weight:bold;">-</span>cutie<span style="color:#006600; font-weight:bold;">-</span>ui</pre></td></tr></table></div>

<p>If you plan to use MySQL to store dm-cuties information, set up a schema for that now by doing:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mysql: CREATE SCHEMA <span style="color: #000000; font-weight: bold;">`</span>dm_cutie<span style="color: #000000; font-weight: bold;">`</span>;</pre></td></tr></table></div>

<p>dm-cutie will allow you to store stuff across different adapters, so you can actually profile a Mysql DataMapper Repository into a dm-cutie sqlite3 repository.  Its ok, she gets it</p>
<p>Now, in your application after your default DataMapper repository is set up do:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'dm-cutie'</span>
 <span style="color:#008000; font-style:italic;">#currently only data_objects is supported</span>
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie</span>.<span style="color:#9900CC;">enable_adapter</span> <span style="color:#ff3333; font-weight:bold;">:data_objects</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'dm-cutie-extras'</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># Query Plans!</span>
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie::Extras</span>.<span style="color:#CC0066; font-weight:bold;">load</span> <span style="color:#ff3333; font-weight:bold;">:mysql_execution_step</span> 
&nbsp;
<span style="color:#008000; font-style:italic;"># Index optimization tips!</span>
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie::Extras</span>.<span style="color:#CC0066; font-weight:bold;">load</span> <span style="color:#ff3333; font-weight:bold;">:mysql_index</span> 
&nbsp;
<span style="color:#008000; font-style:italic;"># Mysql Errors and warnings!</span>
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie::Extras</span>.<span style="color:#CC0066; font-weight:bold;">load</span> <span style="color:#ff3333; font-weight:bold;">:mysql_warning</span> 
&nbsp;
&nbsp;
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie</span>.<span style="color:#9900CC;">setup</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>c<span style="color:#006600; font-weight:bold;">|</span> 
  c<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:repo_name</span><span style="color:#006600; font-weight:bold;">&#93;</span>       = <span style="color:#ff3333; font-weight:bold;">:dm_cutie</span> <span style="color:#008000; font-style:italic;"># name of your repo  </span>
  c<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:exclude_models</span><span style="color:#006600; font-weight:bold;">&#93;</span>  = <span style="color:#0000FF; font-weight:bold;">false</span> <span style="color:#008000; font-style:italic;">#[:person, :car] #models to exclude</span>
  c<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:only_models</span><span style="color:#006600; font-weight:bold;">&#93;</span>     = <span style="color:#0000FF; font-weight:bold;">false</span> <span style="color:#008000; font-style:italic;">#[:article, :address] #model to include</span>
  c<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:slow_query_length</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#006666;">2</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;">#Forces Cutie to always migrate HER models</span>
<span style="color:#6666ff; font-weight:bold;">DataMapper::Cutie</span>.<span style="color:#9900CC;">start</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></td></tr></table></div>

<p>Let dm-cutie sit in your code for a while, she will start to generate lost of data on your repository. I would recommend not putting dm-cutie in a production environment due to the amount of queries that it generates. It is best used in a development or a staging environment and then applies the learned optimization strategies to your production environment.</p>
<p>After cutie has been running a while (or immediately if you are impatient) from the command line do:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ dm<span style="color:#006600; font-weight:bold;">-</span>cutie<span style="color:#006600; font-weight:bold;">-</span>ui <span style="color:#006600; font-weight:bold;">-</span><span style="color:#CC0066; font-weight:bold;">p</span> <span style="color:#006666;">4567</span> <span style="color:#006600; font-weight:bold;">--</span>extras=mysql_warning,mysql_index,mysql_execution_step</pre></td></tr></table></div>

<p>If you didn't use any of the extras in your application you SHOULDNT list them when you start the dm-cutie-ui.</p>
<p>That's that.  You just need to sign in using the URI for your repository, it will be something like: mysql://root@localhost/dm_cutie.</p>
<p>An important note is that when you log into dm-cutie-ui you are logging into the dm-cutie repository, not your applications, so keep that in mind so you dont get errors saying the dm-cutie repo doesn't exist.</p>
<p>Well that's it for now, I'll post about this more after the holiday when I make a few more plugins.  Enjoy!</p>
<p>There is a ton more documentation at:</p>
<ul>
<li><a href="http://github.com/coryodaniel/dm-cutie">dm-cutie github page</a></li>
<li><a href="http://github.com/coryodaniel/dm-cutie-ui">dm-cutie-ui github page</a></li>
<li><a href="http://github.com/coryodaniel/dm-cutie-extras">dm-cutie-extras github page</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=DataMapper+Cutie+%E2%80%93+The+query+tracker+and+profiler+http://bit.ly/cMraUo" title="Post to Twitter"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/&amp;title=DataMapper+Cutie+%E2%80%93+The+query+tracker+and+profiler" title="Post to Digg"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-digg-big2.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/&amp;t=DataMapper+Cutie+%E2%80%93+The+query+tracker+and+profiler" title="Post to Facebook"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-facebook-big2.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/&amp;title=DataMapper+Cutie+%E2%80%93+The+query+tracker+and+profiler" title="Post to Reddit"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-reddit-big2.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/&amp;title=DataMapper+Cutie+%E2%80%93+The+query+tracker+and+profiler" title="Post to StumbleUpon"><img class="nothumb" src="http://coryodaniel.com/wp-content/plugins/tweet-this/icons/tt-su-big2.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://coryodaniel.com/index.php/2009/11/25/datamapper-cutie-the-query-tracker-and-profiler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

