There are a lot of operation i would like to perform on a field that stores an array. The problem is most of these operations are not supported by mongodb.
So from a performance point of view, what is the best way
- Perform these operations using the mongodb server side scripting(javascript). or
- Load the array into my script, perform my operations and push it back into mongo