<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[More than 20000 idata_* tables]]></title><description><![CDATA[<p dir="auto">Hello everybody,<br />
Today I checked the mysql folder in "netxms". I found more than 20000 idata tables. Most of tables are empty.<br />
Can I drop the unused tables?<br />
Someone has any idea?</p>
<p dir="auto">Thank you for any help!<br />
Regards,<br />
Mortymer</p>
]]></description><link>https://forum.netxms.org/topic/6244/more-than-20000-idata_-tables</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:32:19 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6244.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Oct 2019 16:14:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to More than 20000 idata_* tables on Tue, 29 Oct 2019 14:06:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">When I used the last script I had no result.<br />
I checked the access_points table and I found many same rows.<br />
Screenshot attached.<br />
What do you think about this.<br />
The Node 842 is a Mikrotik router.</p>
<p dir="auto">I used this script to check how many duplicated records I have.</p>
<pre><code>select count(*), ap.node_id, ap.mac_address, ap.vendor, ap.model, ap.serial_number, ap.ap_state, ap.ap_index
  from access_points ap
 group by ap.node_id, ap.mac_address, ap.vendor, ap.model, ap.serial_number, ap.ap_state, ap.ap_index
</code></pre>
<p dir="auto">I attached the results.</p>
<p dir="auto">Any idea or suggestion?</p>
<p dir="auto">Thank you for any help!</p>
<p dir="auto">Regards,<br />
Mortymer</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004901-heidisql.PNG" alt="heidisql.PNG" class="img-markdown  img-fluid" width="678" height="724" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004903-heidisql-2.PNG" alt="heidisql-2.PNG" class="img-markdown  img-fluid" width="693" height="496" /></p>
]]></description><link>https://forum.netxms.org/post/26838</link><guid isPermaLink="true">https://forum.netxms.org/post/26838</guid><dc:creator><![CDATA[Mortymer]]></dc:creator><pubDate>Tue, 29 Oct 2019 14:06:32 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Mon, 28 Oct 2019 11:39:18 GMT]]></title><description><![CDATA[<p dir="auto">Yes</p>
]]></description><link>https://forum.netxms.org/post/26835</link><guid isPermaLink="true">https://forum.netxms.org/post/26835</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 28 Oct 2019 11:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Mon, 28 Oct 2019 11:38:48 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Alex,</p>
<p dir="auto">And can I use this script at tdata_ tables?</p>
<p dir="auto">Regards,<br />
Mortymer</p>
]]></description><link>https://forum.netxms.org/post/26834</link><guid isPermaLink="true">https://forum.netxms.org/post/26834</guid><dc:creator><![CDATA[Mortymer]]></dc:creator><pubDate>Mon, 28 Oct 2019 11:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Mon, 28 Oct 2019 11:00:40 GMT]]></title><description><![CDATA[<p dir="auto">There was a mistake in the script - there are few more object types which can have idata_* tables.<br />
Please use this script instead:</p>
<pre><code>SELECT s.name FROM (
    SELECT
        substr(t.table_name,7) AS id,
        t.table_name AS name
    FROM information_schema.tables t
    WHERE
        t.table_schema='mtest'
        AND t.table_name LIKE 'idata_%') AS s
WHERE s.id NOT IN (
        SELECT id FROM nodes
        UNION SELECT id FROM clusters
        UNION SELECT id FROM access_points
        UNION SELECT id FROM sensors
        UNION SELECT id FROM mobile_devices
    );
</code></pre>
]]></description><link>https://forum.netxms.org/post/26833</link><guid isPermaLink="true">https://forum.netxms.org/post/26833</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 28 Oct 2019 11:00:40 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Sun, 27 Oct 2019 19:46:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello Alex,</p>
<p dir="auto">Can I use this script to listing the unused "tdata_" tables?</p>
<p dir="auto">Regards,<br />
Mortymer</p>
]]></description><link>https://forum.netxms.org/post/26830</link><guid isPermaLink="true">https://forum.netxms.org/post/26830</guid><dc:creator><![CDATA[Mortymer]]></dc:creator><pubDate>Sun, 27 Oct 2019 19:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Sat, 26 Oct 2019 07:18:34 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Alex,</p>
<p dir="auto">With this script I'm gonna do the cleaning.</p>
<p dir="auto">Regards,<br />
Mortymer</p>
]]></description><link>https://forum.netxms.org/post/26828</link><guid isPermaLink="true">https://forum.netxms.org/post/26828</guid><dc:creator><![CDATA[Mortymer]]></dc:creator><pubDate>Sat, 26 Oct 2019 07:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to More than 20000 idata_* tables on Fri, 25 Oct 2019 18:00:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Number of idata tables should be roughly the same as number of nodes in the system.</p>
<p dir="auto">This query should return list of tables without corresponding record in nodes or clusters:</p>
<pre><code>SELECT s.id,s.name FROM (SELECT substr(t.table_name,7) AS id, t.table_name AS name FROM information_schema.tables t WHERE t.table_schema='mtest' AND t.table_name LIKE 'idata_%') AS s WHERE s.id NOT IN (SELECT id FROM nodes UNION SELECT id FROM clusters);
</code></pre>
]]></description><link>https://forum.netxms.org/post/26827</link><guid isPermaLink="true">https://forum.netxms.org/post/26827</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 25 Oct 2019 18:00:45 GMT</pubDate></item></channel></rss>