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
This has an advantage over sparse: true because it won't consider empty array [ ] as a duplicate value (i.e. if two or more docs have _slugs: [ ]), and we could remove some unset related hacks we have.
The text was updated successfully, but these errors were encountered:
On the Mongoid 6+ and MongoDB 3.2+ its possible to do the following index:
This has an advantage over
sparse: true
because it won't consider empty array[ ]
as a duplicate value (i.e. if two or more docs have_slugs: [ ]
), and we could remove someunset
related hacks we have.The text was updated successfully, but these errors were encountered: