-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# GROUP BY with many int groups | ||
|
||
setup | ||
CREATE TEMP VIEW v(i1, i2) AS | ||
SELECT * FROM generate_series(1, 4) g1, generate_series(1, 1000000) g2 | ||
|
||
run | ||
SELECT sum(i1) FROM v GROUP BY i2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# GROUP BY with many string groups | ||
|
||
setup | ||
CREATE TEMP VIEW v(ints, strings) AS | ||
SELECT a, repeat(b::string, 100) | ||
FROM generate_series(1, 4) g1(a), generate_series(1, 1000000) g2(b) | ||
|
||
run | ||
SELECT sum(ints) FROM v GROUP BY strings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# GROUP BY with many string groups | ||
|
||
setup | ||
CREATE TEMP VIEW v(ints, strings) AS | ||
SELECT a, b::string FROM generate_series(1, 4) g1(a), generate_series(1, 1000000) g2(b) | ||
|
||
run | ||
SELECT sum(ints) FROM v GROUP BY strings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters