<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/wdstools/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/wdstools/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 19 Oct 2007 10:55:22 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wdstools/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Improve speed of csv-import</title><link>https://sourceforge.net/p/wdstools/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The speed imports can be speed up.&lt;/p&gt;
&lt;p&gt;Firstly, a "clean" DB must not have an index in tabel map. If then the import starts, it can go much faster.&lt;/p&gt;
&lt;p&gt;Secondly, the index must be created after having finished the import.&lt;/p&gt;
&lt;p&gt;I added the fallowing line after if( $booLastRun )&lt;/p&gt;
&lt;p&gt;// add index&lt;br /&gt;
$this-&amp;gt;oDB-&amp;gt;query('ALTER TABLE `'.$this-&amp;gt;oDB-&amp;gt;tblMap.'` ADD PRIMARY KEY (`x`,`y`)');&lt;/p&gt;
&lt;p&gt;And to the clean() method:&lt;br /&gt;
$this-&amp;gt;oDB-&amp;gt;query('DELETE FROM '.$this-&amp;gt;oDB-&amp;gt;tblMapData.';');&lt;br /&gt;
$intCount += intval( $this-&amp;gt;oDB-&amp;gt;affected_rows() );&lt;br /&gt;
$this-&amp;gt;oDB-&amp;gt;query('ALTER TABLE '.$this-&amp;gt;oDB-&amp;gt;tblMapData.' DROP PRIMARY KEY;');&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Markus Sinner</dc:creator><pubDate>Fri, 19 Oct 2007 10:55:22 -0000</pubDate><guid>https://sourceforge.net54e1b79fe6ed6c1d1a3b28bf519a7fad4ef7f6a7</guid></item></channel></rss>