I'm not sure I even understand the sample SQL, given:<p>> Each snapshot can have one or two parents. When merging branches, we perform a breadth-first search on the history of each change until we find the common ancestor between both branches. This is the merge base.<p>And the SQL:<p><pre><code> select * from schema_snapshots where id = 20
(...)
schema_snapshots where id = 24
// *thousands more queries*
</code></pre>
Why select star here? Surely they mean:<p><pre><code> SELECT left_parent_id as parent_id FROM schema_snapshots )
UNION
(SELECT right_parent_id as parent_id FROM schema_snapshots)
WHERE id in (1,2,3...)
</code></pre>
or something?