You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tablespace is a cloud-native Postgres database platform for running Hybrid Transactional and Analytic queries (HTAP) on Postgres using columnstore indexes.
3
+
4
+
*[Homepage](https://www.tablespace.io/)
5
+
*[Dashboard](https://cloud.tablespace.io)
6
+
7
+
## Running the benchmark
8
+
This benchmark is semi-automated
9
+
1. Navigate to https://cloud.tablespace.io and register.
10
+
2. Create a new `LARGE-1` database. The `LARGE-1` shape which has `16 CPUs` and `32GB of RAM` was used for this benchmark.
11
+
This has similar specs to `c6a.4xlarge, 500gb gp2`.
12
+
3. Make a note of the `hostname` and `password`.
13
+
4. For your test client create a VM that is close to the database region in East US. e.g. Oracle Cloud `us-ashburn-1` (closest) or AWS `us-east-1`.
14
+
5. Download the test scripts to this VM and install `psql`.
15
+
6. In the `benchmark.sh` and `run.sh` scripts, replace `<hostname>` and `<password>` with the values from step 3.
16
+
7. Run the `benchmark.sh` script. This will create a table, load data into it, and run a benchmark. Data is automatically loaded into the `csschema` in the `csdb` database.
SELECTSUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits;
4
+
SELECTAVG(UserID) FROM hits;
5
+
SELECTCOUNT(DISTINCT UserID) FROM hits;
6
+
SELECTCOUNT(DISTINCT SearchPhrase) FROM hits;
7
+
SELECTMIN(EventDate), MAX(EventDate) FROM hits;
8
+
SELECT AdvEngineID, COUNT(*) FROM hits WHERE AdvEngineID <>0GROUP BY AdvEngineID ORDER BYCOUNT(*) DESC;
9
+
SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM hits GROUP BY RegionID ORDER BY u DESCLIMIT10;
10
+
SELECT RegionID, SUM(AdvEngineID), COUNT(*) AS c, AVG(ResolutionWidth), COUNT(DISTINCT UserID) FROM hits GROUP BY RegionID ORDER BY c DESCLIMIT10;
11
+
SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <>''GROUP BY MobilePhoneModel ORDER BY u DESCLIMIT10;
12
+
SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <>''GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESCLIMIT10;
13
+
SELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
14
+
SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits WHERE SearchPhrase <>''GROUP BY SearchPhrase ORDER BY u DESCLIMIT10;
15
+
SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <>''GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESCLIMIT10;
16
+
SELECT UserID, COUNT(*) FROM hits GROUP BY UserID ORDER BYCOUNT(*) DESCLIMIT10;
17
+
SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase ORDER BYCOUNT(*) DESCLIMIT10;
18
+
SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase LIMIT10;
19
+
SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, m, SearchPhrase ORDER BYCOUNT(*) DESCLIMIT10;
20
+
SELECT UserID FROM hits WHERE UserID =435090932899640449;
21
+
SELECTCOUNT(*) FROM hits WHERE URL LIKE'%google%';
22
+
SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM hits WHERE URL LIKE'%google%'AND SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
23
+
SELECT SearchPhrase, MIN(URL), MIN(Title), COUNT(*) AS c, COUNT(DISTINCT UserID) FROM hits WHERE Title LIKE'%Google%'AND URL NOT LIKE'%.google.%'AND SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
24
+
SELECT*FROM hits WHERE URL LIKE'%google%'ORDER BY EventTime LIMIT10;
25
+
SELECT SearchPhrase FROM hits WHERE SearchPhrase <>''ORDER BY EventTime LIMIT10;
26
+
SELECT SearchPhrase FROM hits WHERE SearchPhrase <>''ORDER BY SearchPhrase LIMIT10;
27
+
SELECT SearchPhrase FROM hits WHERE SearchPhrase <>''ORDER BY EventTime, SearchPhrase LIMIT10;
28
+
SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM hits WHERE URL <>''GROUP BY CounterID HAVINGCOUNT(*) >100000ORDER BY l DESCLIMIT25;
29
+
SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM hits WHERE Referer <>''GROUP BY k HAVINGCOUNT(*) >100000ORDER BY l DESCLIMIT25;
SELECT SearchEngineID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <>''GROUP BY SearchEngineID, ClientIP ORDER BY c DESCLIMIT10;
32
+
SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <>''GROUP BY WatchID, ClientIP ORDER BY c DESCLIMIT10;
33
+
SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits GROUP BY WatchID, ClientIP ORDER BY c DESCLIMIT10;
34
+
SELECT URL, COUNT(*) AS c FROM hits GROUP BY URL ORDER BY c DESCLIMIT10;
35
+
SELECT1, URL, COUNT(*) AS c FROM hits GROUP BY1, URL ORDER BY c DESCLIMIT10;
36
+
SELECT ClientIP, ClientIP -1, ClientIP -2, ClientIP -3, COUNT(*) AS c FROM hits GROUP BY ClientIP, ClientIP -1, ClientIP -2, ClientIP -3ORDER BY c DESCLIMIT10;
37
+
SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND DontCountHits =0AND IsRefresh =0AND URL <>''GROUP BY URL ORDER BY PageViews DESCLIMIT10;
38
+
SELECT Title, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND DontCountHits =0AND IsRefresh =0AND Title <>''GROUP BY Title ORDER BY PageViews DESCLIMIT10;
39
+
SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND IsLink <>0AND IsDownload =0GROUP BY URL ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
40
+
SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID =0AND AdvEngineID =0) THEN Referer ELSE '' END AS Src, URL AS Dst, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
41
+
SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND TraficSourceID IN (-1, 6) AND RefererHash =3594120000172545465GROUP BY URLHash, EventDate ORDER BY PageViews DESCLIMIT10 OFFSET 100;
42
+
SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND DontCountHits =0AND URLHash =2868770270353813622GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESCLIMIT10 OFFSET 10000;
43
+
SELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM hits WHERE CounterID =62AND EventDate >='2013-07-14'AND EventDate <='2013-07-15'AND IsRefresh =0AND DontCountHits =0GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT10 OFFSET 1000;
0 commit comments