-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Hi all,
A change to the uniqueness validator to no longer use the $ne query selector, which misses any indexes. Instead opting to return all matching records and then removing itself from possible conflicts.
Had to enable always removing the current document's id in the check for embedded documents since they are present in the relationship before they are persisted. Could opt to load another instance of the parent document for the check, but would only affect the untested case where the '_id' and tested attribute contain the same value in embeds_many relationships.
Thanks again,
Dave