Meta-populate
#1233
Replies: 1 comment 1 reply
-
This is exactly the reason for the master-part relationship. In this case, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
It's often the case that a pipeline will have a single parent table, like
Session
, that motivates thepopulate
of a number of children for each data modality (e.g.,TaskEpoch
,VideoFile
). We found that when someone encounters an error with one such table, they often want to rollback, edit the files, and start over.Ideas
The way DataJoint pipelines often handle this is a
pipeline.py
script thatgoes through each table and calls
populate
on them one at a time.To allow rollback, we created a function to wrap a set of populates in a single transaction. The user calls
populate_all_common
here, which runs as many populates as is can in a single transaction via this method, allowing the user to decide how they want to treat errors/rollback.A future DataJoint function my allow...
The less ambitious version would only allow siblings in the passed list of tables
Beta Was this translation helpful? Give feedback.
All reactions