-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(filemanager): add index for key prefixes
- Loading branch information
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
lib/workload/stateless/stacks/filemanager/database/migrations/0006_index.sql
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
-- A gin index on attributes supported the `@?` operator and jsonpath queries. | ||
create index attributes_index on s3_object using gin (attributes jsonb_path_ops); | ||
-- An index on keys helps querying by prefix. | ||
create index key_index on s3_object (key text_pattern_ops); |
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