<?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[Merge two Mango data bases]]></title><description><![CDATA[<p dir="auto">Hello Everyone,</p>
<p dir="auto">in the past, when our Mango data base got too big, we dumped its contents and created a new data base for operation. This was a quick "fix" because the big data base caused a heap space exception in some jdbc function. This is now worked around by setting a higher maximum memory usage for the tomcat server.</p>
<p dir="auto">The old data bases (dumps) still exist and hold valuable data though. The data bases are MySQL ones. The goal is to merge these into one big data base and use that one in the future (again with higher JVM memory). The Mango configuration did not change from data base to data base, so the layouts are the same. The problem lies with unique IDs for the measurements in the 'pointvalues' table. MySQL consequently issues a "duplicate entry for key 'Primary'" error.</p>
<p dir="auto">So my actual question: What is the preferred way to merge Mango data bases? Is there any best practice for it?</p>
<p dir="auto">Thanks and Best Regards,<br />
Michael</p>
]]></description><link>https://forum.mango-os.com/topic/1013/merge-two-mango-data-bases</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 05:14:13 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1013.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 May 2012 18:55:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Merge two Mango data bases on Wed, 13 Jun 2012 16:05:08 GMT]]></title><description><![CDATA[<p dir="auto">Just thinking aloud whether the following could work:</p>
<p dir="auto">Turn off auto-increment and delete the ids on a destination db pointvalues table. Then import the old db data. Delete the ID column from the destination db. Then re-create the ID column with auto-increment and primary key.</p>
<p dir="auto">The thing that breaks of course are the pointvalues annotations (what is their use?) and the image file names.</p>
<p dir="auto">Is this correct? I would greatly appreciate some advice/help.</p>
<p dir="auto">Thanks,<br />
Michael</p>
]]></description><link>https://forum.mango-os.com/post/6458</link><guid isPermaLink="true">https://forum.mango-os.com/post/6458</guid><dc:creator><![CDATA[moinmoin]]></dc:creator><pubDate>Wed, 13 Jun 2012 16:05:08 GMT</pubDate></item><item><title><![CDATA[Reply to Merge two Mango data bases on Tue, 29 May 2012 19:50:11 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your comment Matthew.</p>
<p dir="auto">A compound key, as you mentioned, would make things way easier merging-wise. Sadly, the paid support is no option due to lack of budget (sound familiar?).</p>
<p dir="auto">For now I will have to do my analysis on the distributed old data bases and the running one.</p>
<p dir="auto">In the meantime I would appreciate any hints or ideas for a solution.</p>
<p dir="auto">Thanks and Best Regards,<br />
Michael</p>
]]></description><link>https://forum.mango-os.com/post/6400</link><guid isPermaLink="true">https://forum.mango-os.com/post/6400</guid><dc:creator><![CDATA[moinmoin]]></dc:creator><pubDate>Tue, 29 May 2012 19:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Merge two Mango data bases on Tue, 29 May 2012 19:14:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi Michael,</p>
<p dir="auto">There are no set practices for merging Mango databases together. That said, we are moving the system (slowly) away from a dependence upon auto-increment keys, instead using the point id / timestamp as the key. In the meantime, there are two uses of the point value id:</p>
<ol>
<li>matching with the annotation in the point value annotations table</li>
<li>matching with image file names (for the http image data source)</li>
</ol>
<p dir="auto">If you need help merging your databases, contact infinite automation for details on support.</p>
]]></description><link>https://forum.mango-os.com/post/6399</link><guid isPermaLink="true">https://forum.mango-os.com/post/6399</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 29 May 2012 19:14:10 GMT</pubDate></item></channel></rss>