I'm using mongodb and have a large collection that seems to use a bunch of memory when running find on the collection.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)
The collection is indexed. The query I'm running looks like this:
$results = Listing::find($criteria)->limit(10);
Any ideas would be great. I need to determine if I need to query the db directly and would prefer to use the Mvc\Collection.
Thanks, Ben