Skip to content

Instantly share code, notes, and snippets.

@Alex-Ikanow
Created November 8, 2012 17:58
Show Gist options
  • Save Alex-Ikanow/4040414 to your computer and use it in GitHub Desktop.
Save Alex-Ikanow/4040414 to your computer and use it in GitHub Desktop.
Query resulting in MongoDB hang
QUERY:
{
"$or" : [ { "searchCycle_secs" : { "$exists" : false}} , { "$where" : "(null == this.harvest) || (null == this.harvest.harvested) || (null == this.searchCycle_secs) || ((this.harvest.harvested.getTime() + 1000*this.searchCycle_secs) <= 1352397384946)"}] ,
"isApproved" : true , "harvestBadSource" : { "$ne" : true} , "extractType" : { "$in" : [ "Feed" , "feed"]}
}
FIELDS:
{ "_id" : 1 , "extractType" : 1 , "key" : 1 , "harvest.harvested" : 1 , "harvest.synced" : 1 , "searchCycle_secs" : 1 , "harvest.harvest_status" : 1}
ORDERBY:
{ "harvest.harvested" : 1}
LIMIT:
120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment