Skip to content

Commit

Permalink
Disable batchSize on metric queries.
Browse files Browse the repository at this point in the history
As best I can tell, this was causing it to return no more than 1,000 results,
even though the intent was to paginate after the first 1,000. Fishy.
  • Loading branch information
mbostock committed Apr 2, 2012
1 parent 6c47292 commit f211edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cube/server/metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var util = require("util"),
reduces = require("./reduces");

var metric_fields = {v: 1},
metric_options = {sort: {_id: 1}, batchSize: 1000},
metric_options = {sort: {_id: 1}},
event_options = {sort: {t: 1}, batchSize: 1000};

// Query for metrics.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cube",
"version": "0.1.1",
"version": "0.1.2",
"description": "A system for time series visualization using MongoDB, Node and D3.",
"keywords": ["time series", "visualization"],
"homepage": "http://square.github.com/cube/",
Expand Down

0 comments on commit f211edf

Please sign in to comment.