Skip to content

Commit

Permalink
Add index for supplemental attribute searches
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-thom committed Jan 10, 2025
1 parent 2f6eeec commit 27e1d7e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/supplemental_attribute_associations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 27e1d7e

Please sign in to comment.