Index required on input_id
and output_id
on DbLink
table
#2557
Labels
priority/important
topic/database-schema
type/accepted feature
approved feature request
type/performance
Issue related to how quickly AiiDA works
Milestone
The engine often makes calls to
get_incoming
(for example when computing the hash) andget_outgoing
, when it has to add new outputs and during link validation. These require a query on theDbLink
table on theoutput_id
andinput_id
column, neither of which have an index. This makes these operations very expensive for bigger databases and for my production database of more than 10 million links, the engine grinds to a halt.The text was updated successfully, but these errors were encountered: