Last active
August 23, 2018 12:51
-
-
Save nhc/7682dc614f0f1c1665eb42756eba85a0 to your computer and use it in GitHub Desktop.
This does not work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$number = 5000; | |
$filter['email_1'] = ['$exists' => 1]; | |
$mongoRequest = new MongoRequest(); | |
$mongoRequest->setFilter($filter); | |
$mongoRequest->setLimit($number); | |
$importContactModel = new ImportContactModel(); | |
$importContacts = $importContactModel->find($mongoRequest); | |
$total = $importContactModel->count($mongoRequest); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we take out line 9, all works perfectly. The query returns 176,000 documents no problems.