-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRY-321: add indexes to optimize embeddings fetching by subject name
- Loading branch information
1 parent
6a6601e
commit b68df89
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
java/admin/src/main/resources/db/changelog/db.changelog-0.2.4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: create-indexes-on-embeddings | ||
author: [email protected] | ||
changes: | ||
- createIndex: | ||
tableName: embeddings | ||
columns: | ||
- column: | ||
name: subject_id | ||
indexName: embeddings_subject_id_idx | ||
- changeSet: | ||
id: create-index-on-image-attributes | ||
author: [email protected] | ||
changes: | ||
- createIndex: | ||
tableName: image_attributes | ||
columns: | ||
- column: | ||
name: image_id | ||
indexName: image_attributes_image_id_idx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
java/api/src/test/resources/db/changelog/db.changelog-0.2.4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: create-indexes-on-embeddings | ||
author: [email protected] | ||
changes: | ||
- createIndex: | ||
tableName: embeddings | ||
columns: | ||
- column: | ||
name: subject_id | ||
indexName: embeddings_subject_id_idx | ||
- changeSet: | ||
id: create-index-on-image-attributes | ||
author: [email protected] | ||
changes: | ||
- createIndex: | ||
tableName: image_attributes | ||
columns: | ||
- column: | ||
name: image_id | ||
indexName: image_attributes_image_id_idx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters