To not keep some Mongo queries in my own memory, I note them here.
With Javascript evaluation in condition
Javascript evaluation is slow. Don’t forget “==” and “this” in condition clause:
1 2 3 |
db.trips.find("this.device_id==1234 && this.distance_meters < 1000", {start_time:1, end_time:1, distance:1} ).skip(10).limit(10) |