Indexing when create | recreate collection #2812
Answered
by
GromNaN
AbdallahTarabish
asked this question in
Q&A
-
when delete a collection and recreate it, the indexes associated with that collection are not automatically recreated ,this is because index creation is not a default behavior during collection creation, |
Beta Was this translation helpful? Give feedback.
Answered by
GromNaN
Apr 2, 2024
Replies: 1 comment
-
Indexes are part of the schema management feature. You can use Laravel Migrations to manage your indexes. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
GromNaN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indexes are part of the schema management feature. You can use Laravel Migrations to manage your indexes.
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/current/eloquent-models/schema-builder/#manage-indexes