Skip to content

Commit

Permalink
use APPROX_COUNT_DISTINCT for size queries (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai authored and mrblueblue committed Jun 7, 2017
1 parent 551d420 commit 9340d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function formGroupSizeQuery(writeFilter, state, ignoreFilters) {
if (d > 0) {
query += ",";
}
query += "COUNT(DISTINCT " + state.dimArray[d] + ") AS n";
query += "APPROX_COUNT_DISTINCT(" + state.dimArray[d] + ") AS n";
if (state.multiDim) {
query += d.toString();
}
Expand Down

0 comments on commit 9340d15

Please sign in to comment.