-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Indexing when create | recreate collection #2812
-
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,
what's the solution ?
Beta Was this translation helpful? Give feedback.
All reactions
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
Replies: 1 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
Beta Was this translation helpful? Give feedback.