is createIndexes
in mongoose idempotent?
#15463
Unanswered
kasir-barati
asked this question in
Q&A
Replies: 1 comment 1 reply
-
A related question: #15462 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In MongoDB API it seems like calling this API is basically safe as many times as you like since it is idempotent: https://www.mongodb.com/community/forums/t/behavior-of-createindex-for-an-existing-index/2248
But I just wanna confirm that this is also the case for DocumentDB in AWS.
And whether it will try to reindex the existing document again and again if I call this API on a collection with lots of documents.
Beta Was this translation helpful? Give feedback.
All reactions