LearnBoost/mongoose — Issue #741: $pull simplification/optimization
Author: jtlebi
Created: 2012-02-19 19:25:51+00:00
State: open

I noticed with debug enabled that $pull*ing* an element from an array of embedded objects leads to a query like this

``` js
{$pull: {embededObjectArrayField: { _id: { '$in': [ '000000000000000000000000' ] } } }
```

I was wondering if this version was not better for performances on the MongoDB side ?

``` js
{$pull: {embededObjectArrayField: { _id: '000000000000000000000000' } } }
```