I am using the Mongo extension of PHP.
I have a collection of two-level documents in MongoDB, and each document has a "email" field at a second level (i. e., "user_data.email" field). I want to get a MongoCursor
loaded with documents, each having this field in lowercase. Is this possible?
The dataset is ~100000 documents and I have already profiled my application and know that strtolower()
over the results at PHP side is a bottleneck.