You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a ManyToMany relationship between AiiDA groups and nodes.
This is translated at database level with an intermediate table correlating nodes (dbnodes) and groups (dbgroups).
In this table, it is normal to have only one occurrence of group-node.
Therefore a uniqueness constraint should be added.
Moreover, for uniformity reasons, an index should be added on the group and on the node column to match the Django schema and increase the speed of any kind of containment checks.
szoupanos
changed the title
Create unique constrain at the db_dbgroup_dbnodes table in SQLA
Create unique constraints at the db_dbgroup_dbnodes table in SQLA
Jun 22, 2018
There is a ManyToMany relationship between AiiDA groups and nodes.
This is translated at database level with an intermediate table correlating nodes (dbnodes) and groups (dbgroups).
In this table, it is normal to have only one occurrence of group-node.
Therefore a uniqueness constraint should be added.
Moreover, for uniformity reasons, an index should be added on the group and on the node column to match the Django schema and increase the speed of any kind of containment checks.
E.g.
This is related to the comment of Martin at #1319
#1319 (comment)
and to the pull request #1677
The text was updated successfully, but these errors were encountered: