Skip to content

Commit

Permalink
Add manual index names where index names might get too long
Browse files Browse the repository at this point in the history
Some managed mongoDB providers limit index name lengths, and multi-column indexes' default names may exceed this.
  • Loading branch information
zachmullen committed May 22, 2023
1 parent 2c44ebe commit c3e4c48
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,22 @@ def initialize(self):
('bbox.lowx', SortDir.DESCENDING),
('bbox.highx', SortDir.ASCENDING),
('bbox.size', SortDir.DESCENDING),
], {}),
], {
'name': 'annotationBboxIdx'
}),
([
('annotationId', SortDir.ASCENDING),
('bbox.size', SortDir.DESCENDING),
], {}),
], {
'name': 'annotationBboxSizeIdx'
}),
([
('annotationId', SortDir.ASCENDING),
('_version', SortDir.DESCENDING),
('element.group', SortDir.ASCENDING),
], {}),
], {
'name': 'annotationGroupIdx'
}),
([
('created', SortDir.ASCENDING),
('_version', SortDir.ASCENDING),
Expand Down

0 comments on commit c3e4c48

Please sign in to comment.