You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call multiple createIndex() methods with the same index specification at the same time, only the first operation will succeed, all other operations will have no effect.
Does this mean we can safely call collection.createIndex even in production mode?
The text was updated successfully, but these errors were encountered:
The current code
skips creating index when sails.config.models.migrate === 'safe'. So what should we do in order to create index in production mode? db-migrate?
Btw, in mongodb doc, it says
Does this mean we can safely call collection.createIndex even in production mode?
The text was updated successfully, but these errors were encountered: