In any case, do it in Store/MySQL.pm, not <a href="http://store.pm/" target="_blank">Store.pm</a> base class.<br><br><div class="gmail_quote">On Tue, Mar 11, 2008 at 12:01 PM, dormando &lt;<a href="mailto:dormando@rydia.net">dormando@rydia.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Mon, 10 Mar 2008, Ask Bjørn Hansen wrote:<br>
<br>
&gt;<br>
&gt; On Mar 10, 2008, at 15:43, Mark Smith wrote:<br>
&gt;<br>
&gt;&gt; AFAIK this trick doesn&#39;t work on InnoDB, since they use a flat<br>
&gt;&gt; tablespace TRUNCATE just maps to DELETE FROM anyway.<br>
&gt;<br>
&gt; It does if you use the (recommended) innodb_file_per_table configuration...<br>
&gt;<br>
&gt;<br>
&gt; - ask<br>
<br>
</div>While you won&#39;t reclaim disk space, TRUNCATE TABLE is always fast under<br>
innodb.<br>
<br>
Honestly I thought I fixed this a while ago? Maybe I&#39;ve been manually<br>
running TRUNCATE TABLE in prod :(<br>
<font color="#888888"><br>
-Dormando</font></blockquote></div><br>