Skip to content

Instantly share code, notes, and snippets.

@liwh
Created July 6, 2012 07:31
Show Gist options
  • Save liwh/3058684 to your computer and use it in GitHub Desktop.
Save liwh/3058684 to your computer and use it in GitHub Desktop.
update mongodb
db.paike_video.update({"$or" : [{"loc.0": {"$gt": 180} },{"loc.0":{"$lt":-180}},{"loc.1":{"$lt": -90}},{"loc.1":{"$gt":90}}]},{"$set":{"loc":[0,0]}},false,true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment