Skip to content

Commit

Permalink
Limiting mongo listings. Trying to maybe prevent the 'stress test' fr…
Browse files Browse the repository at this point in the history
…om destroying everything forever.
  • Loading branch information
bmelton committed Apr 11, 2012
1 parent f74ca53 commit db536b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orbvt.js
Expand Up @@ -3,7 +3,7 @@ default_message = "This is the first post on the Orbvt (and cannot be destroyed)

if (Meteor.is_client) {
Template.orbvt.posts = function() {
return Posts.find();
return Posts.find({}, {}, 10, 0);
};

Template.orbvt.events = {
Expand All @@ -18,7 +18,7 @@ if (Meteor.is_client) {
var post = {title: 'Test post', author: 'bmelton', content: default_message, date: 'April 11'};
Posts.insert(post);
}
},
}
}
}

Expand Down

0 comments on commit db536b7

Please sign in to comment.