Skip to content

Commit 5ccc5db

Browse files
committed
Adding indexes on uuid for ArtifactArchiveListing
1 parent 7031021 commit 5ccc5db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

strongbox-db-schema/src/main/java/org/carlspring/strongbox/db/schema/StrongboxSchema.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ protected Set<String> createIndexes(JanusGraph jg,
245245
jgm.getVertexLabel(USER),
246246
true,
247247
jgm.getPropertyKey(UUID)).ifPresent(result::add);
248+
buildIndexIfNecessary(jgm,
249+
Vertex.class,
250+
jgm.getVertexLabel(ARTIFACT_ARCHIVE_LISTING),
251+
true,
252+
jgm.getPropertyKey(UUID)).ifPresent(result::add);
248253

249254
return result;
250255
}

0 commit comments

Comments
 (0)