mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
216 lines
13 KiB
Plaintext
216 lines
13 KiB
Plaintext
|
3
|
||
|
SELECT count(*) FROM hits_100m_obfuscated;
|
||
|
Time: 3259.733 ms (00:03.260)
|
||
|
Time: 3135.484 ms (00:03.135)
|
||
|
Time: 3135.579 ms (00:03.136)
|
||
|
3
|
||
|
SELECT count(*) FROM hits_100m_obfuscated WHERE AdvEngineID != 0;
|
||
|
Time: 146854.557 ms (02:26.855)
|
||
|
Time: 6921.736 ms (00:06.922)
|
||
|
Time: 6619.892 ms (00:06.620)
|
||
|
3
|
||
|
SELECT sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m_obfuscated;
|
||
|
Time: 146568.297 ms (02:26.568)
|
||
|
Time: 7481.610 ms (00:07.482)
|
||
|
Time: 7258.209 ms (00:07.258)
|
||
|
3
|
||
|
SELECT sum(UserID) FROM hits_100m_obfuscated;
|
||
|
Time: 146864.106 ms (02:26.864)
|
||
|
Time: 5690.024 ms (00:05.690)
|
||
|
Time: 5381.820 ms (00:05.382)
|
||
|
3
|
||
|
SELECT COUNT(DISTINCT UserID) FROM hits_100m_obfuscated;
|
||
|
Time: 227507.331 ms (03:47.507)
|
||
|
Time: 69165.471 ms (01:09.165)
|
||
|
Time: 72216.950 ms (01:12.217)
|
||
|
3
|
||
|
SELECT COUNT(DISTINCT SearchPhrase) FROM hits_100m_obfuscated;
|
||
|
Time: 323644.397 ms (05:23.644)
|
||
|
Time: 177578.740 ms (02:57.579)
|
||
|
Time: 175055.738 ms (02:55.056)
|
||
|
3
|
||
|
SELECT min(EventDate), max(EventDate) FROM hits_100m_obfuscated;
|
||
|
Time: 146147.843 ms (02:26.148)
|
||
|
Time: 5735.128 ms (00:05.735)
|
||
|
Time: 5428.638 ms (00:05.429)
|
||
|
3
|
||
|
SELECT AdvEngineID, count(*) FROM hits_100m_obfuscated WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
||
|
Time: 148658.450 ms (02:28.658)
|
||
|
Time: 7014.882 ms (00:07.015)
|
||
|
Time: 6599.736 ms (00:06.600)
|
||
|
3
|
||
|
SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM hits_100m_obfuscated GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
||
|
Time: 202423.122 ms (03:22.423)
|
||
|
Time: 54439.047 ms (00:54.439)
|
||
|
Time: 54800.354 ms (00:54.800)
|
||
|
3
|
||
|
SELECT RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), COUNT(DISTINCT UserID) FROM hits_100m_obfuscated GROUP BY RegionID ORDER BY c DESC LIMIT 10;
|
||
|
Time: 201152.491 ms (03:21.152)
|
||
|
Time: 55875.854 ms (00:55.876)
|
||
|
Time: 55200.330 ms (00:55.200)
|
||
|
3
|
||
|
SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits_100m_obfuscated WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
||
|
Time: 146042.603 ms (02:26.043)
|
||
|
Time: 9931.633 ms (00:09.932)
|
||
|
Time: 10037.032 ms (00:10.037)
|
||
|
3
|
||
|
SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits_100m_obfuscated WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
||
|
Time: 150811.952 ms (02:30.812)
|
||
|
Time: 10320.230 ms (00:10.320)
|
||
|
Time: 9993.232 ms (00:09.993)
|
||
|
3
|
||
|
SELECT SearchPhrase, count(*) AS c FROM hits_100m_obfuscated WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
|
Time: 173071.218 ms (02:53.071)
|
||
|
Time: 34314.835 ms (00:34.315)
|
||
|
Time: 34420.919 ms (00:34.421)
|
||
|
3
|
||
|
SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits_100m_obfuscated WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
||
|
Time: 172874.155 ms (02:52.874)
|
||
|
Time: 43704.494 ms (00:43.704)
|
||
|
Time: 43918.380 ms (00:43.918)
|
||
|
3
|
||
|
SELECT SearchEngineID, SearchPhrase, count(*) AS c FROM hits_100m_obfuscated WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
|
Time: 178484.822 ms (02:58.485)
|
||
|
Time: 36850.436 ms (00:36.850)
|
||
|
Time: 35789.029 ms (00:35.789)
|
||
|
3
|
||
|
SELECT UserID, count(*) FROM hits_100m_obfuscated GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
||
|
Time: 169720.759 ms (02:49.721)
|
||
|
Time: 24125.730 ms (00:24.126)
|
||
|
Time: 23782.745 ms (00:23.783)
|
||
|
3
|
||
|
SELECT UserID, SearchPhrase, count(*) FROM hits_100m_obfuscated GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
||
|
Time: 182335.631 ms (03:02.336)
|
||
|
Time: 37324.563 ms (00:37.325)
|
||
|
Time: 37124.250 ms (00:37.124)
|
||
|
3
|
||
|
SELECT UserID, SearchPhrase, count(*) FROM hits_100m_obfuscated GROUP BY UserID, SearchPhrase LIMIT 10;
|
||
|
Time: 163799.714 ms (02:43.800)
|
||
|
Time: 18514.031 ms (00:18.514)
|
||
|
Time: 18968.524 ms (00:18.969)
|
||
|
3
|
||
|
SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, count(*) FROM hits_100m_obfuscated GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
||
|
Time: 294799.480 ms (04:54.799)
|
||
|
Time: 149592.992 ms (02:29.593)
|
||
|
Time: 149466.291 ms (02:29.466)
|
||
|
3
|
||
|
SELECT UserID FROM hits_100m_obfuscated WHERE UserID = -6101065172474983726;
|
||
|
Time: 140797.496 ms (02:20.797)
|
||
|
Time: 5312.321 ms (00:05.312)
|
||
|
Time: 5020.502 ms (00:05.021)
|
||
|
3
|
||
|
SELECT count(*) FROM hits_100m_obfuscated WHERE URL LIKE '%metrika%';
|
||
|
Time: 143092.287 ms (02:23.092)
|
||
|
Time: 7893.874 ms (00:07.894)
|
||
|
Time: 7661.326 ms (00:07.661)
|
||
|
3
|
||
|
SELECT SearchPhrase, min(URL), count(*) AS c FROM hits_100m_obfuscated WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
|
Time: 143682.424 ms (02:23.682)
|
||
|
Time: 9249.962 ms (00:09.250)
|
||
|
Time: 9073.876 ms (00:09.074)
|
||
|
3
|
||
|
SELECT SearchPhrase, min(URL), min(Title), count(*) AS c, COUNT(DISTINCT UserID) FROM hits_100m_obfuscated WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
|
||
|
Time: 150965.884 ms (02:30.966)
|
||
|
Time: 20350.812 ms (00:20.351)
|
||
|
Time: 20074.939 ms (00:20.075)
|
||
|
3
|
||
|
SELECT * FROM hits_100m_obfuscated WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
||
|
Time: 4674.669 ms (00:04.675)
|
||
|
Time: 4532.389 ms (00:04.532)
|
||
|
Time: 4555.457 ms (00:04.555)
|
||
|
3
|
||
|
SELECT SearchPhrase FROM hits_100m_obfuscated WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
||
|
Time: 5.177 ms
|
||
|
Time: 5.031 ms
|
||
|
Time: 4.419 ms
|
||
|
3
|
||
|
SELECT SearchPhrase FROM hits_100m_obfuscated WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
||
|
Time: 141152.210 ms (02:21.152)
|
||
|
Time: 7492.968 ms (00:07.493)
|
||
|
Time: 7300.428 ms (00:07.300)
|
||
|
3
|
||
|
SELECT SearchPhrase FROM hits_100m_obfuscated WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
||
|
Time: 30.736 ms
|
||
|
Time: 5.018 ms
|
||
|
Time: 5.132 ms
|
||
|
3
|
||
|
SELECT CounterID, avg(length(URL)) AS l, count(*) AS c FROM hits_100m_obfuscated WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
||
|
Time: 144034.016 ms (02:24.034)
|
||
|
Time: 10701.672 ms (00:10.702)
|
||
|
Time: 10348.565 ms (00:10.349)
|
||
|
3
|
||
|
SELECT REGEXP_REPLACE(Referer, '^https?://(?:www.)?([^/]+)/.*$', '1') AS key, avg(length(Referer)) AS l, count(*) AS c, min(Referer) FROM hits_100m_obfuscated WHERE Referer != '' GROUP BY key HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
||
|
Time: 191575.080 ms (03:11.575)
|
||
|
Time: 97836.706 ms (01:37.837)
|
||
|
Time: 97673.219 ms (01:37.673)
|
||
|
3
|
||
|
SELECT sum(ResolutionWidth), sum(ResolutionWidth + 1), sum(ResolutionWidth + 2), sum(ResolutionWidth + 3), sum(ResolutionWidth + 4), sum(ResolutionWidth + 5), sum(ResolutionWidth + 6), sum(ResolutionWidth + 7), sum(ResolutionWidth + 8), sum(ResolutionWidth + 9), sum(ResolutionWidth + 10), sum(ResolutionWidth + 11), sum(ResolutionWidth + 12), sum(ResolutionWidth + 13), sum(ResolutionWidth + 14), sum(ResolutionWidth + 15), sum(ResolutionWidth + 16), sum(ResolutionWidth + 17), sum(ResolutionWidth + 18), sum(ResolutionWidth + 19), sum(ResolutionWidth + 20), sum(ResolutionWidth + 21), sum(ResolutionWidth + 22), sum(ResolutionWidth + 23), sum(ResolutionWidth + 24), sum(ResolutionWidth + 25), sum(ResolutionWidth + 26), sum(ResolutionWidth + 27), sum(ResolutionWidth + 28), sum(ResolutionWidth + 29), sum(ResolutionWidth + 30), sum(ResolutionWidth + 31), sum(ResolutionWidth + 32), sum(ResolutionWidth + 33), sum(ResolutionWidth + 34), sum(ResolutionWidth + 35), sum(ResolutionWidth + 36), sum(ResolutionWidth + 37), sum(ResolutionWidth + 38), sum(ResolutionWidth + 39), sum(ResolutionWidth + 40), sum(ResolutionWidth + 41), sum(ResolutionWidth + 42), sum(ResolutionWidth + 43), sum(ResolutionWidth + 44), sum(ResolutionWidth + 45), sum(ResolutionWidth + 46), sum(ResolutionWidth + 47), sum(ResolutionWidth + 48), sum(ResolutionWidth + 49), sum(ResolutionWidth + 50), sum(ResolutionWidth + 51), sum(ResolutionWidth + 52), sum(ResolutionWidth + 53), sum(ResolutionWidth + 54), sum(ResolutionWidth + 55), sum(ResolutionWidth + 56), sum(ResolutionWidth + 57), sum(ResolutionWidth + 58), sum(ResolutionWidth + 59), sum(ResolutionWidth + 60), sum(ResolutionWidth + 61), sum(ResolutionWidth + 62), sum(ResolutionWidth + 63), sum(ResolutionWidth + 64), sum(ResolutionWidth + 65), sum(ResolutionWidth + 66), sum(ResolutionWidth + 67), sum(ResolutionWidth + 68), sum(ResolutionWidth + 69), sum(ResolutionWidth + 70), sum(ResolutionWidth + 71), sum(ResolutionWidth + 72), sum(ResolutionWidth + 73), sum(ResolutionWidth + 74), sum(ResolutionWidth + 75), sum(ResolutionWidth + 76), sum(ResolutionWidth + 77), sum(ResolutionWidth + 78), sum(ResolutionWidth + 79), sum(ResolutionWidth + 80), sum(ResolutionWidth + 81), sum(ResolutionWidth + 82), sum(ResolutionWidth + 83), sum(ResolutionWidth + 84), sum(ResolutionWidth + 85), sum(ResolutionWidth + 86), sum(ResolutionWidth + 87), sum(ResolutionWidth + 88), sum(ResolutionWidth + 89) FROM hits_100m_obfuscated;
|
||
|
Time: 143652.317 ms (02:23.652)
|
||
|
Time: 22185.656 ms (00:22.186)
|
||
|
Time: 21887.411 ms (00:21.887)
|
||
|
3
|
||
|
SELECT SearchEngineID, ClientIP, count(*) AS c, sum("refresh"), avg(ResolutionWidth) FROM hits_100m_obfuscated WHERE SearchPhrase != '' GROUP BY SearchEngineID, ClientIP ORDER BY c DESC LIMIT 10;
|
||
|
Time: 153481.944 ms (02:33.482)
|
||
|
Time: 17748.628 ms (00:17.749)
|
||
|
Time: 17551.116 ms (00:17.551)
|
||
|
3
|
||
|
SELECT WatchID, ClientIP, count(*) AS c, sum("refresh"), avg(ResolutionWidth) FROM hits_100m_obfuscated WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10;
|
||
|
Time: 167448.684 ms (02:47.449)
|
||
|
Time: 25902.961 ms (00:25.903)
|
||
|
Time: 25592.018 ms (00:25.592)
|
||
|
3
|
||
|
SELECT WatchID, ClientIP, count(*) AS c, sum("refresh"), avg(ResolutionWidth) FROM hits_100m_obfuscated GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10;
|
||
|
Time: 299183.443 ms (04:59.183)
|
||
|
Time: 145349.772 ms (02:25.350)
|
||
|
Time: 143214.688 ms (02:23.215)
|
||
|
3
|
||
|
SELECT URL, count(*) AS c FROM hits_100m_obfuscated GROUP BY URL ORDER BY c DESC LIMIT 10;
|
||
|
Time: 389851.369 ms (06:29.851)
|
||
|
Time: 228158.639 ms (03:48.159)
|
||
|
Time: 231811.118 ms (03:51.811)
|
||
|
3
|
||
|
SELECT 1, URL, count(*) AS c FROM hits_100m_obfuscated GROUP BY 1, URL ORDER BY c DESC LIMIT 10;
|
||
|
Time: 407458.343 ms (06:47.458)
|
||
|
Time: 230125.530 ms (03:50.126)
|
||
|
Time: 230764.511 ms (03:50.765)
|
||
|
3
|
||
|
SELECT ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) AS c FROM hits_100m_obfuscated GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY c DESC LIMIT 10;
|
||
|
Time: 174098.556 ms (02:54.099)
|
||
|
Time: 23503.975 ms (00:23.504)
|
||
|
Time: 24322.856 ms (00:24.323)
|
||
|
3
|
||
|
SELECT URL, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND "refresh" = 0 AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
||
|
Time: 145906.025 ms (02:25.906)
|
||
|
Time: 10824.695 ms (00:10.825)
|
||
|
Time: 10484.885 ms (00:10.485)
|
||
|
3
|
||
|
SELECT Title, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND "refresh" = 0 AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
||
|
Time: 144063.711 ms (02:24.064)
|
||
|
Time: 8947.980 ms (00:08.948)
|
||
|
Time: 8608.434 ms (00:08.608)
|
||
|
3
|
||
|
SELECT URL, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND "refresh" = 0 AND IsLink != 0 AND IsDownload = 0 GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
||
|
Time: 141883.596 ms (02:21.884)
|
||
|
Time: 7977.257 ms (00:07.977)
|
||
|
Time: 7673.547 ms (00:07.674)
|
||
|
3
|
||
|
SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID = 0 AND AdvEngineID = 0) THEN Referer ELSE '' END AS Src, URL AS Dst, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND "refresh" = 0 GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
||
|
Time: 147100.084 ms (02:27.100)
|
||
|
Time: 9527.812 ms (00:09.528)
|
||
|
Time: 9457.663 ms (00:09.458)
|
||
|
3
|
||
|
SELECT URLHash, EventDate, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND "refresh" = 0 AND TraficSourceID IN (-1, 6) AND RefererHash = 686716256552154761 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100;
|
||
|
Time: 144585.669 ms (02:24.586)
|
||
|
Time: 10815.223 ms (00:10.815)
|
||
|
Time: 10594.707 ms (00:10.595)
|
||
|
3
|
||
|
SELECT WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND "refresh" = 0 AND DontCountHits = 0 AND URLHash = 686716256552154761 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000;
|
||
|
Time: 145738.341 ms (02:25.738)
|
||
|
Time: 10592.979 ms (00:10.593)
|
||
|
Time: 10181.477 ms (00:10.181)
|
||
|
3
|
||
|
SELECT DATE_TRUNC('minute', EventTime) AS "Minute", count(*) AS PageViews FROM hits_100m_obfuscated WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-02' AND "refresh" = 0 AND DontCountHits = 0 GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime);
|
||
|
Time: 145023.796 ms (02:25.024)
|
||
|
Time: 8035.337 ms (00:08.035)
|
||
|
Time: 7865.698 ms (00:07.866)
|