mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
5541 lines
257 KiB
Plaintext
5541 lines
257 KiB
Plaintext
|
start time: Сб. сент. 21 01:16:53 MSK 2013
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 956
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 958
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
1 row in set (0.00 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 959
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 961
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
1 row in set (0.00 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 962
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 964
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m;
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
+-----------+
|
|||
|
1 row in set (0.00 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 965
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 967
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (3 min 40.39 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 968
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 970
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (3 min 54.32 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 971
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 973
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (5 min 5.28 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 974
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 976
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
1 row in set (3 min 40.45 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 977
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 979
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
1 row in set (3 min 18.31 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 980
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 982
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(AdvEngineID), count(*), avg(ResolutionWidth) FROM hits_100m;
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
+------------------+-----------+----------------------+
|
|||
|
1 row in set (3 min 18.37 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 983
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 985
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
1 row in set (3 min 27.60 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 986
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 988
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
1 row in set (3 min 10.59 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 989
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 991
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(UserID) FROM hits_100m;
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
+-----------------------------+
|
|||
|
1 row in set (3 min 8.35 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 992
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 994
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (4 min 35.96 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 995
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 997
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (4 min 10.84 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 998
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1000
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT UserID) FROM hits_100m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (4 min 6.93 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1001
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1003
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (4 min 52.17 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1004
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1006
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (4 min 14.14 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1007
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1009
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(DISTINCT SearchPhrase) FROM hits_100m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (4 min 11.06 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1010
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1012
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (1 min 15.51 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1013
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1015
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (1 min 16.11 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1016
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1018
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE min(EventDate), max(EventDate) FROM hits_100m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (1 min 14.98 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1019
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1021
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
18 rows in set (3 min 23.94 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1022
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1024
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
18 rows in set (3 min 4.14 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1025
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1027
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE AdvEngineID, count(*) FROM hits_100m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
18 rows in set (3 min 0.82 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- мощная фильтрация. После фильтрации почти ничего не остаётся, но делаем ещё агрегацию.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1028
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1030
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
10 rows in set (4 min 47.28 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1031
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1033
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
10 rows in set (4 min 12.52 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1034
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1036
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, count(DISTINCT UserID) AS u FROM hits_100m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
+----------+---------+
|
|||
|
10 rows in set (4 min 9.48 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- агрегация, среднее количество ключей.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1037
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1039
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DES
C LIMIT 10;
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
10 rows in set (4 min 59.44 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1040
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1042
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DES
C LIMIT 10;
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
10 rows in set (4 min 42.02 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1043
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1045
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE RegionID, sum(AdvEngineID), count(*) AS c, avg(ResolutionWidth), count(DISTINCT UserID) FROM hits_100m GROUP BY RegionID ORDER BY count(*) DES
C LIMIT 10;
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
+----------+------------------+----------+----------------------+------------------------+
|
|||
|
10 rows in set (4 min 31.33 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- агрегация, среднее количество ключей, несколько агрегатных функций.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1046
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1048
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
10 rows in set (3 min 38.71 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1049
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1051
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
10 rows in set (3 min 17.51 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1052
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1054
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
+------------------+--------+
|
|||
|
10 rows in set (3 min 15.94 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- мощная фильтрация по строкам, затем агрегация по строкам.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1055
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1057
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel
ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
10 rows in set (3 min 40.10 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1058
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1060
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel
ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
10 rows in set (3 min 17.17 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1061
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1063
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE MobilePhone, MobilePhoneModel, count(DISTINCT UserID) AS u FROM hits_100m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel
ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
+-------------+------------------+--------+
|
|||
|
10 rows in set (3 min 19.88 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- мощная фильтрация по строкам, затем агрегация по паре из числа и строки.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1064
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1066
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
10 rows in set (15 min 29.45 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1067
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1069
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
10 rows in set (14 min 29.74 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1070
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1072
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
+-----------------------------------------------------------+----------+
|
|||
|
10 rows in set (12 min 19.53 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- средняя фильтрация по строкам, затем агрегация по строкам, большое количество ключей.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1073
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1075
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1076
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1078
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1079
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1081
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, count(DISTINCT UserID) AS u FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- агрегация чуть сложнее.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1082
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1084
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LI
MIT 10;
|
|||
|
quit
|
|||
|
+----------------+-----------------------------------------------------------+----------+
|
|||
|
+----------------+-----------------------------------------------------------+----------+
|
|||
|
+----------------+-----------------------------------------------------------+----------+
|
|||
|
10 rows in set (19 min 56.42 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1085
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1087
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LI
MIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1088
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1090
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, SearchPhrase, count(*) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LI
MIT 10;
|
|||
|
quit
|
|||
|
-- агрегация по числу и строке, большое количество ключей.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1091
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1093
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1094
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1096
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1097
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1099
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, count(*) FROM hits_100m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- агрегация по очень большому количеству ключей, может не хватить оперативки.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1100
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1102
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1103
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1105
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1108
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1110
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- ещё более сложная агрегация.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1111
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1113
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1114
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1116
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1117
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1119
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
quit
|
|||
|
-- то же самое, но без сортировки.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1120
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1122
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1123
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1125
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1126
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1128
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID, Minute(EventTime) AS m, SearchPhrase, count(*) FROM hits_100m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- ещё более сложная агрегация, не стоит выполнять на больших таблицах.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1129
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1131
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (7 min 27.72 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1132
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1134
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (3 min 19.09 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1135
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1137
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE UserID FROM hits_100m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (3 min 5.82 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- мощная фильтрация по столбцу типа UInt64.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1138
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1140
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (9 min 42.73 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1141
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1143
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (3 min 16.73 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1144
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1146
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE count(*) FROM hits_100m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (3 min 15.80 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- фильтрация по поиску подстроки в строке.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1147
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1149
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (9 min 42.54 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1150
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1152
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (3 min 25.89 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1153
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1155
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), count(*) FROM hits_100m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
+------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (3 min 19.15 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- вынимаем большие столбцы, фильтрация по строке.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1156
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1158
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yande
x.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
10 rows in set (9 min 28.75 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1159
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1161
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yande
x.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
10 rows in set (3 min 37.15 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1162
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1164
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase, MAX(URL), MAX(Title), count(*) AS c, count(DISTINCT UserID) FROM hits_100m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yande
x.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
+---------------------------------------------------------+-----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------+
|
|||
|
10 rows in set (3 min 29.65 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- чуть больше столбцы.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1165
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1167
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
10 rows in set (9 min 22.72 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1168
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1170
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
10 rows in set (3 min 26.77 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1171
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1173
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE * FROM hits_100m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
+---------------------+------------+------------------------------------------------------------------------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+----------------------------------------------------------------+---------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+-----------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+--------------------------+---------+----------+----------------------+----------------------+------+------------+
|
|||
|
10 rows in set (3 min 23.19 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- плохой запрос - вынимаем все столбцы.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1174
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1176
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
quit
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (10 min 2.47 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1177
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1179
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 6.80 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1180
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1182
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 6.62 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- большая сортировка.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1183
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1185
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (9 min 25.26 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1186
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1188
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 19.44 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1189
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1191
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+----------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 19.24 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- большая сортировка по строкам.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1192
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1194
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
quit
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (10 min 57.78 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1195
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1197
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 22.53 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1198
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1200
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchPhrase FROM hits_100m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (3 min 16.95 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- большая сортировка по кортежу.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1201
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1203
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
quit
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
25 rows in set (11 min 15.84 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1204
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1206
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
25 rows in set (4 min 10.11 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1207
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1209
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE CounterID, avg(length(URL)) AS l, count(*) FROM hits_100m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
25 rows in set (4 min 8.90 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- считаем средние длины URL для крупных счётчиков.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1210
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2)) - 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1212
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2))
- 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1213
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2)) - 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1215
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2))
- 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1216
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2)) - 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1218
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SUBSTRING(SUBSTRING(Referer, POSITION('//' IN Referer) + 2), 1, GREATEST(0, POSITION('/' IN SUBSTRING(Referer, POSITION('//' IN Referer) + 2))
- 1)) AS k, avg(length(Referer)) AS l, count(*) AS c, MAX(Referer) FROM hits_100m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25
;
|
|||
|
quit
|
|||
|
-- то же самое, но с разбивкой по доменам.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1219
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE 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;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1221
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(ResolutionWidth), sum(ResolutionWidth + 1), sum(ResolutionWidth + 2), sum(ResolutionWidth + 3), sum(ResolutionWidth + 4), sum(ResolutionWi
dth + 5), sum(ResolutionWidth + 6), sum(ResolutionWidth + 7), sum(ResolutionWidth + 8), sum(ResolutionWidth + 9), sum(ResolutionWidth + 10), sum(ResolutionWidth + 11), s
um(ResolutionWidth + 12), sum(ResolutionWidth + 13), sum(ResolutionWidth + 14), sum(ResolutionWidth + 15), sum(ResolutionWidth + 16), sum(ResolutionWidth + 17), sum(Reso
lutionWidth + 18), sum(ResolutionWidth + 19), sum(ResolutionWidth + 20), sum(ResolutionWidth + 21), sum(ResolutionWidth + 22), sum(ResolutionWidth + 23), sum(ResolutionW
idth + 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), su
m(ResolutionWidth + 37), sum(ResolutionWidth + 38), sum(ResolutionWidth + 39), sum(ResolutionWidth + 40), sum(ResolutionWidth + 41), sum(ResolutionWidth + 42), sum(Resol
utionWidth + 43), sum(ResolutionWidth + 44), sum(ResolutionWidth + 45), sum(ResolutionWidth + 46), sum(ResolutionWidth + 47), sum(ResolutionWidth + 48), sum(ResolutionWi
dth + 49), sum(ResolutionWidth + 50), sum(ResolutionWidth + 51), sum(ResolutionWidth + 52), sum(ResolutionWidth + 53), sum(ResolutionWidth + 54), sum(ResolutionWidth + 5
5), 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(Resolu
tionWidth + 68), sum(ResolutionWidth + 69), sum(ResolutionWidth + 70), sum(ResolutionWidth + 71), sum(ResolutionWidth + 72), sum(ResolutionWidth + 73), sum(ResolutionWid
th + 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;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1222
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE 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;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1224
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(ResolutionWidth), sum(ResolutionWidth + 1), sum(ResolutionWidth + 2), sum(ResolutionWidth + 3), sum(ResolutionWidth + 4), sum(ResolutionWi
dth + 5), sum(ResolutionWidth + 6), sum(ResolutionWidth + 7), sum(ResolutionWidth + 8), sum(ResolutionWidth + 9), sum(ResolutionWidth + 10), sum(ResolutionWidth + 11), s
um(ResolutionWidth + 12), sum(ResolutionWidth + 13), sum(ResolutionWidth + 14), sum(ResolutionWidth + 15), sum(ResolutionWidth + 16), sum(ResolutionWidth + 17), sum(Reso
lutionWidth + 18), sum(ResolutionWidth + 19), sum(ResolutionWidth + 20), sum(ResolutionWidth + 21), sum(ResolutionWidth + 22), sum(ResolutionWidth + 23), sum(ResolutionW
idth + 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), su
m(ResolutionWidth + 37), sum(ResolutionWidth + 38), sum(ResolutionWidth + 39), sum(ResolutionWidth + 40), sum(ResolutionWidth + 41), sum(ResolutionWidth + 42), sum(Resol
utionWidth + 43), sum(ResolutionWidth + 44), sum(ResolutionWidth + 45), sum(ResolutionWidth + 46), sum(ResolutionWidth + 47), sum(ResolutionWidth + 48), sum(ResolutionWi
dth + 49), sum(ResolutionWidth + 50), sum(ResolutionWidth + 51), sum(ResolutionWidth + 52), sum(ResolutionWidth + 53), sum(ResolutionWidth + 54), sum(ResolutionWidth + 5
5), 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(Resolu
tionWidth + 68), sum(ResolutionWidth + 69), sum(ResolutionWidth + 70), sum(ResolutionWidth + 71), sum(ResolutionWidth + 72), sum(ResolutionWidth + 73), sum(ResolutionWid
th + 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;
|
|||
|
quit
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
1 row in set (17 min 41.89 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1225
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE 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;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1227
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE sum(ResolutionWidth), sum(ResolutionWidth + 1), sum(ResolutionWidth + 2), sum(ResolutionWidth + 3), sum(ResolutionWidth + 4), sum(ResolutionWi
dth + 5), sum(ResolutionWidth + 6), sum(ResolutionWidth + 7), sum(ResolutionWidth + 8), sum(ResolutionWidth + 9), sum(ResolutionWidth + 10), sum(ResolutionWidth + 11), s
um(ResolutionWidth + 12), sum(ResolutionWidth + 13), sum(ResolutionWidth + 14), sum(ResolutionWidth + 15), sum(ResolutionWidth + 16), sum(ResolutionWidth + 17), sum(Reso
lutionWidth + 18), sum(ResolutionWidth + 19), sum(ResolutionWidth + 20), sum(ResolutionWidth + 21), sum(ResolutionWidth + 22), sum(ResolutionWidth + 23), sum(ResolutionW
idth + 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), su
m(ResolutionWidth + 37), sum(ResolutionWidth + 38), sum(ResolutionWidth + 39), sum(ResolutionWidth + 40), sum(ResolutionWidth + 41), sum(ResolutionWidth + 42), sum(Resol
utionWidth + 43), sum(ResolutionWidth + 44), sum(ResolutionWidth + 45), sum(ResolutionWidth + 46), sum(ResolutionWidth + 47), sum(ResolutionWidth + 48), sum(ResolutionWi
dth + 49), sum(ResolutionWidth + 50), sum(ResolutionWidth + 51), sum(ResolutionWidth + 52), sum(ResolutionWidth + 53), sum(ResolutionWidth + 54), sum(ResolutionWidth + 5
5), 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(Resolu
tionWidth + 68), sum(ResolutionWidth + 69), sum(ResolutionWidth + 70), sum(ResolutionWidth + 71), sum(ResolutionWidth + 72), sum(ResolutionWidth + 73), sum(ResolutionWid
th + 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;
|
|||
|
quit
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
1 row in set (17 min 34.60 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- много тупых агрегатных функций.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1228
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1230
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, C
lientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1231
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1233
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, C
lientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
10 rows in set (16 min 33.89 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1234
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1236
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE SearchEngineID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY SearchEngineID, C
lientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
+----------------+------------+------+--------------+----------------------+
|
|||
|
10 rows in set (15 min 18.67 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- сложная агрегация, для больших таблиц может не хватить оперативки.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1237
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1239
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1240
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1242
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (10 min 4.48 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1243
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1245
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (9 min 13.33 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
-- агрегация по двум полям, которая ничего не агрегирует. Для больших таблиц выполнить не получится.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1246
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1248
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10
;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1249
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1251
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10
;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1252
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1254
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WatchID, ClientIP, count(*) AS c, sum(Refresh), avg(ResolutionWidth) FROM hits_100m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10
;
|
|||
|
quit
|
|||
|
-- то же самое, но ещё и без фильтрации.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1255
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1257
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1258
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1260
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1261
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1263
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) FROM hits_100m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- агрегация по URL.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1264
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1266
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1267
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1269
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1270
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1272
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE 1, URL, count(*) FROM hits_100m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
-- агрегация по URL и числу.;
|
|||
|
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1273
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1275
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_100m`.`ClientIP` - 1)'
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1276
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1278
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_100m`.`ClientIP` - 1)'
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1279
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY count(*) DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1281
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, count(*) FROM hits_100m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER
BY count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_100m`.`ClientIP` - 1)'
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1282
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query:
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1284
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1285
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query:
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1287
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1288
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query:
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1290
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1291
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1293
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND
NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1294
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1296
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND
NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1297
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1299
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND
NOT DontCountHits AND NOT Refresh AND URL != '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1300
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1302
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND N
OT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1303
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1305
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND N
OT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1306
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1308
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE Title, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND N
OT DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (14 min 33.29 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1309
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1311
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT
Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1312
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1314
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT
Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1315
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1317
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URL, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT
Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1318
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE 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 WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1320
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN SearchEngineID = 0 AND AdvEngineID = 0 THEN Referer ELSE '' END AS Src, URL AS Dst, co
unt(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID,
SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1321
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE 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 WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1323
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN SearchEngineID = 0 AND AdvEngineID = 0 THEN Referer ELSE '' END AS Src, URL AS Dst, co
unt(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID,
SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1324
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE 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 WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1326
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN SearchEngineID = 0 AND AdvEngineID = 0 THEN Referer ELSE '' END AS Src, URL AS Dst, co
unt(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID,
SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1329
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1331
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-
07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1332
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1334
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-
07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1335
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1337
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE URLHash, EventDate, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-
07-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1338
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1340
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND Event
Date <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DES
C LIMIT 10000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1341
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1343
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND Event
Date <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DES
C LIMIT 10000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1344
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1346
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE WindowClientWidth, WindowClientHeight, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND Event
Date <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DES
C LIMIT 10000;
|
|||
|
quit
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1347
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 1
|
|||
|
query: SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1349
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013
-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
Empty set (0.67 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1350
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 2
|
|||
|
query: SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1352
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013
-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
Empty set (0.00 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
Rather than invoking init scripts through /etc/init.d, use the service(8)
|
|||
|
utility, e.g. service mysql status
|
|||
|
|
|||
|
Since the script you are attempting to invoke has been converted to an
|
|||
|
Upstart job, you may also use the status(8) utility, e.g. status mysql
|
|||
|
mysql start/running, process 19577
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1353
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql>
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
|
|||
|
times: 3
|
|||
|
query: SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 1355
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table information for completion of table and column names
|
|||
|
You can turn off this feature to get a quicker startup with -A
|
|||
|
|
|||
|
Database changed
|
|||
|
mysql> SELECT SQL_NO_CACHE EventTime - INTERVAL SECOND(EventTime) SECOND AS Minute, count(*) AS PageViews FROM hits_100m WHERE CounterID = 34 AND EventDate >= DATE('2013
-07-01') AND EventDate <= DATE('2013-07-02') AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute;
|
|||
|
Empty set (0.00 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
stop time: Вс. сент. 22 13:02:57 MSK 2013
|