I have a large MongoDb collection, where users can search on multiple Array fields. How is the best way to index that? I saw that creating indexes for multiple Array indexes ends up with:
"Mongo::Error::OperationFailure: cannot index parallel arrays"
Example query:
db.collection.find(
{category_ids: {$in: [object_id, object_id]},
second_category_ids: $in: {[object_id, object_id]}
}
)