hasgeek / eventframe

Eventframe
16 stars 6 forks source link

Imports should be in two passes #2

Closed jace closed 12 years ago

jace commented 12 years ago

When importing, some nodes (such as List) reference other nodes. This can break imports if the referenced item is not yet in the database because it is further down in the import queue.

Imports should be in two passes:

  1. The first pass imports basic node data and anything that doesn't reference other nodes.
  2. The second pass runs after the first pass has committed, importing internal data.