masuilab / Gyazz

Node+Express+MongoDBによるGyazzの再実装
22 stars 1 forks source link

Update main.coffee #220

Closed nikezono closed 9 years ago

nikezono commented 9 years ago

191

お手数おかけします

shokai commented 9 years ago

aggregate使ってるとmongoのqueryの時点でlimitかけれないんだっけ

nikezono commented 9 years ago

http://docs.mongodb.org/manual/reference/operator/aggregation/limit/

nikezono commented 9 years ago

Changed in version 2.4: Before MongoDB 2.4, $sort would sort all the results in memory, and then limit the results to n results.

ですね