diff --git a/src/supplemental_attribute_associations.jl b/src/supplemental_attribute_associations.jl index a5abd405..21fbf8c8 100644 --- a/src/supplemental_attribute_associations.jl +++ b/src/supplemental_attribute_associations.jl @@ -63,6 +63,17 @@ function _create_attribute_associations_table!( end function _create_indexes!(associations::SupplementalAttributeAssociations) + SQLite.createindex!( + associations.db, + SUPPLEMENTAL_ATTRIBUTE_TABLE_NAME, + "by_attribute", + [ + "attribute_uuid", + "component_uuid", + "component_type", + ]; + unique = false, + ) SQLite.createindex!( associations.db, SUPPLEMENTAL_ATTRIBUTE_TABLE_NAME,