mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
5819 lines
294 KiB
Plaintext
5819 lines
294 KiB
Plaintext
|
start time: Пт. сент. 20 20:04:14 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 560
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 562
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
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 563
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 565
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
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 566
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 568
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
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 569
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 571
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (21.55 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 572
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 574
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (18.91 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 575
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 577
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0;
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (18.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 578
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 580
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
1 row in set (22.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 581
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 583
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
1 row in set (19.86 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 584
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 586
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
+------------------+----------+----------------------+
|
|||
|
1 row in set (20.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 587
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 589
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
1 row in set (21.30 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 590
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 592
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
1 row in set (18.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 593
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 595
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
+----------------------------+
|
|||
|
1 row in set (19.25 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 596
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 598
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (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 599
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 601
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (25.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 602
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 604
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
+------------------------+
|
|||
|
1 row in set (25.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 605
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 607
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (29.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 608
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 610
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (26.92 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 611
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 613
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
+------------------------------+
|
|||
|
1 row in set (26.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 614
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 616
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (7.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 617
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 619
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (7.38 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 620
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 622
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
+----------------+----------------+
|
|||
|
1 row in set (7.23 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 623
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 625
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
9 rows in set (20.56 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 626
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 628
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
9 rows in set (18.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 629
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 631
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count(*) DESC;
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
+-------------+----------+
|
|||
|
9 rows in set (18.41 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 632
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 634
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
10 rows in set (27.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 635
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 637
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
10 rows in set (25.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 638
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 640
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY u DESC LIMIT 10;
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
+----------+--------+
|
|||
|
10 rows in set (24.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 641
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 643
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
10 rows in set (30.08 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 644
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 646
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
10 rows in set (26.07 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 647
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 649
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY RegionID ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
+----------+------------------+---------+----------------------+------------------------+
|
|||
|
10 rows in set (26.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 650
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 652
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
10 rows in set (22.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 653
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 655
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
10 rows in set (19.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 656
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 658
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
+------------------+-------+
|
|||
|
10 rows in set (20.23 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 659
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 661
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel O
RDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
10 rows in set (21.79 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 662
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 664
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel O
RDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
10 rows in set (19.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 665
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 667
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE MobilePhoneModel != '' GROUP BY MobilePhone, MobilePhoneModel O
RDER BY u DESC LIMIT 10;
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
+-------------+------------------+-------+
|
|||
|
10 rows in set (19.64 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 668
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 670
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
10 rows in set (51.30 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 671
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 673
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
10 rows in set (42.27 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 674
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 676
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
+-----------------------------+----------+
|
|||
|
10 rows in set (46.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 677
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 679
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
10 rows in set (43.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 680
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 682
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
10 rows in set (42.38 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 683
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 685
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
+-------------------------------------------+------+
|
|||
|
10 rows in set (42.36 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 686
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 688
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIM
IT 10;
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
10 rows in set (43.76 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 689
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 691
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIM
IT 10;
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
10 rows in set (48.66 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 692
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 694
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, SearchPhrase ORDER BY count(*) DESC LIM
IT 10;
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
+----------------+-----------------------------+----------+
|
|||
|
10 rows in set (46.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 695
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 697
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
10 rows in set (1 min 46.76 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 698
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 700
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
10 rows in set (1 min 46.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 701
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 703
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
+---------------------+----------+
|
|||
|
10 rows in set (1 min 45.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 704
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 706
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
10 rows in set (2 min 52.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 707
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 709
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
10 rows in set (3 min 1.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 710
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 712
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
+---------------------+--------------+----------+
|
|||
|
10 rows in set (2 min 57.70 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 713
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 715
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
10 rows in set (3 min 9.92 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 716
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 718
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
10 rows in set (2 min 46.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 719
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 721
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, SearchPhrase LIMIT 10;
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
+----------------------+---------------------------------------------------------------+----------+
|
|||
|
10 rows in set (2 min 52.03 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 722
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 724
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
10 rows in set (3 min 5.61 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 725
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 727
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
10 rows in set (3 min 1.38 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 728
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 730
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY UserID, m, SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
+---------------------+------+--------------+----------+
|
|||
|
10 rows in set (3 min 26.92 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 731
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 733
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (20.30 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 734
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 736
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (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 737
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 739
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE UserID = 12345678901234567890;
|
|||
|
Empty set (18.49 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 740
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 742
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (21.43 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 743
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 745
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (20.03 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 746
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 748
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%';
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
+----------+
|
|||
|
1 row in set (19.99 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 749
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 751
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (21.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 752
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 754
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (20.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 755
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 757
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC
LIMIT 10;
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+----------+
|
|||
|
10 rows in set (20.30 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 758
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 760
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex
.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
10 rows in set (25.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 761
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 763
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex
.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
10 rows in set (20.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 764
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 766
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex
.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+------------------------+
|
|||
|
10 rows in set (20.58 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 767
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 769
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
10 rows in set (24.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 770
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 772
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
10 rows in set (20.04 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 773
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 775
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL LIKE '%metrika%' ORDER BY EventTime LIMIT 10;
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
+---------------------+------------+-------------------------+-----------+---------------------+------------+-----------+------------+----------+---------------------+--------------+------+-----------+---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+---------+-------------------+-----------------+---------------+-------------+-----------------+------------------+-----------------+------------+------------+-------------+----------+----------+----------------+----------------+--------------+------------------+----------+-------------+------------------+--------+-------------+----------------+----------------+--------------+-------------+-------------+-------------------+--------------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+-------------+-------------+--------+------------+-------------+---------------------+-------------+------------+--------------+---------+-------------+---------------+----------+----------+---------------------+------+------+--------+-----------+-----------+------------+------------+------------+---------------+-----------------+----------------+---------------+--------------+-----------+------------+-----------+---------------+---------------------+-------------------+-------------+-----------------------+------------------+------------+--------------+---------------+-----------------+---------------------+--------------------+--------------+------------------+-----------+-----------+-------------+------------+---------+---------+----------+----------------------+---------------------+------+------------+
|
|||
|
10 rows in set (19.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 776
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 778
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (21.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 779
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 781
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (19.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 782
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 784
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (19.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 785
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 787
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (22.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 788
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 790
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (20.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 791
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 793
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY SearchPhrase LIMIT 10;
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------------------------------------------------------------------------------------------------------------------------+
|
|||
|
10 rows in set (20.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 794
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 796
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (21.41 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 797
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 799
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (19.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 800
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 802
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' ORDER BY EventTime, SearchPhrase LIMIT 10;
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
+--------------------------------------------------------------------+
|
|||
|
10 rows in set (19.91 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 803
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 805
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
19 rows in set (27.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 806
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 808
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
19 rows in set (26.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 809
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 811
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE URL != '' GROUP BY CounterID HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
+-----------+----------+----------+
|
|||
|
19 rows in set (25.32 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 812
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 814
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
11 rows in set (2 min 15.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 815
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 817
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
11 rows in set (2 min 14.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 818
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 820
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE Referer != '' GROUP BY k HAVING count(*) > 100000 ORDER BY l DESC LIMIT 25;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
+------------------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------+
|
|||
|
11 rows in set (2 min 13.12 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 821
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 823
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
1 row in set (1 min 47.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 824
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 826
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
1 row in set (1 min 46.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 827
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
spawn mysql -u root
|
|||
|
Welcome to the MySQL monitor. Commands end with ; or \g.
|
|||
|
Your MySQL connection id is 829
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m;
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
+----------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+---------------------------+
|
|||
|
1 row in set (1 min 46.16 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 830
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 832
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, Cl
ientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
10 rows in set (40.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 833
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 835
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, Cl
ientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
10 rows in set (36.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 836
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 838
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY SearchEngineID, Cl
ientIP ORDER BY count(*) DESC LIMIT 10;
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
+----------------+------------+-----+--------------+----------------------+
|
|||
|
10 rows in set (37.07 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 839
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 841
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (39.20 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 842
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 844
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (36.86 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 845
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 847
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (37.22 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 848
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 850
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (2 min 14.50 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 851
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 853
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (2 min 10.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 854
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 856
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY WatchID, ClientIP ORDER BY count(*) DESC LIMIT 10;
[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K;
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
+---------------------+------------+---+--------------+----------------------+
|
|||
|
10 rows in set (2 min 13.55 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 857
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 859
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (17 min 37.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 860
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 862
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (17 min 55.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 863
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 865
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (15 min 28.38 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 866
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 868
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (14 min 27.64 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 869
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 871
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (17 min 3.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 872
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 874
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY 1, URL ORDER BY count(*) DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
+---+--------------------------------------------------------------+----------+
|
|||
|
10 rows in set (17 min 43.40 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 875
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 877
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_10m`.`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 878
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 880
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_10m`.`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 881
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 883
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER B
Y count(*) DESC LIMIT 10;
|
|||
|
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(`hits`.`hits_10m`.`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 884
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 886
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 887
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 889
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 890
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 892
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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 893
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 895
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (19 min 20.03 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 896
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 898
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (23.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 899
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 901
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (23.08 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 902
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 904
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NO
T DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
quit
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (18 min 29.20 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 905
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 907
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NO
T DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (14.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 908
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 910
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NO
T DontCountHits AND NOT Refresh AND Title != '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10;
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
+---------------------------------------------------------------------------------------+-----------+
|
|||
|
10 rows in set (14.38 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 911
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 913
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
1000 rows in set (18 min 6.92 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 914
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 916
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
1000 rows in set (7.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 917
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 919
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
1000 rows in set (6.63 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 920
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 922
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, S
earchEngineID, 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 923
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 925
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, S
earchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
1000 rows in set (31.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 926
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 928
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-07-31') AND NOT Refresh GROUP BY TraficSourceID, S
earchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000;
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
+----------------+----------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|
|||
|
1000 rows in set (31.79 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 929
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 931
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-0
7-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
quit
|
|||
|
Empty set (17 min 54.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 932
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 934
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-0
7-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
Empty set (5.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 935
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 937
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventDate <= DATE('2013-0
7-31') AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = 6202628419148573758 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100000;
|
|||
|
Empty set (5.43 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 938
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 940
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventD
ate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC
LIMIT 10000;
|
|||
|
quit
|
|||
|
Empty set (17 min 49.16 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 941
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 943
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventD
ate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC
LIMIT 10000;
|
|||
|
Empty set (5.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 944
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 946
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m WHERE CounterID = 34 AND EventDate >= DATE('2013-07-01') AND EventD
ate <= DATE('2013-07-31') AND NOT Refresh AND NOT DontCountHits AND URLHash = 6202628419148573758 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC
LIMIT 10000;
|
|||
|
Empty set (5.30 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 947
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 949
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
quit
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
652 rows in set (10 min 52.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 950
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 952
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
652 rows in set (4.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 953
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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 955
|
|||
|
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu)
|
|||
|
|
|||
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|||
|
|
|||
|
mysql> use hits
|
|||
|
Reading table 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_10m 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;
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
+---------------------+-----------+
|
|||
|
652 rows in set (4.57 sec)
|
|||
|
|
|||
|
mysql> quit
|
|||
|
Bye
|
|||
|
stop time: Сб. сент. 21 01:16:53 MSK 2013
|