Migration from Adjacency List to Closure Tables
<p>I have an Adjacency List relations in MySQL groups table.</p>

<pre><code>| id | parent |
</code></pre>

<p>Lately found that queries work slower each day and have decided to migrate to Closure Tables (groups_connection MySQL table):</p>

<pre><code>| parent | child | level |
</code></pre>

<p>I am totally stucked on this for over week. Can somebody help with this?
Tested lots of scripts. For the moment, got nothing to do with it.</p>