Skip to content

Commit

Permalink
perf(connections): more efficient totalCount (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Mar 15, 2019
1 parent b4d6ffb commit 00c8616
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ export default (function PgConnectionTotalCount(builder) {
return {
pgAggregateQuery: aggregateQueryBuilder => {
aggregateQueryBuilder.select(
sql.fragment`count(*)`,
sql.fragment`count(1)`,
"totalCount"
);
},
Expand Down

0 comments on commit 00c8616

Please sign in to comment.