Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MySQL [(none)]> CREATE TABLE `videos_test` (
- -> `source_id` string,
- -> `provider_id` uint,
- -> `title_unique` bool,
- -> `title` text,
- -> `summary` text,
- -> `tags` text,
- -> `names` text,
- -> `duration` uint,
- -> `thumb_exists` bool,
- -> `thumb_url` text stored,
- -> `flipbook` text stored,
- -> `straight` bool,
- -> `added_at` timestamp,
- -> `affected_at` timestamp,
- -> `removed_at` timestamp,
- -> `unlisted_at` timestamp,
- -> `hidden` bool
- -> ) ngram_len='1' ngram_chars='cjk' morphology='stem_enru'
- -> stopwords_unstemmed='1' stopwords='en ru zh ja ko'
- -> rt_mem_limit='2G';
- Query OK, 0 rows affected (0.030 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos_test');
- +------+-----------+------------+
- | qpos | tokenized | normalized |
- +------+-----------+------------+
- | 1 | risky | riski |
- | 2 | things | thing |
- | 4 | risky | riski |
- +------+-----------+------------+
- 3 rows in set (0.002 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos_test', 1 AS `stats`);
- +------+-----------+------------+------+------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+------+------+
- | 1 | risky | riski | 0 | 0 |
- | 2 | things | thing | 0 | 0 |
- | 4 | risky | riski | 0 | 0 |
- +------+-----------+------------+------+------+
- 3 rows in set (0.001 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky-risky-risky!', 'videos_test', 1 AS `stats`);
- +------+-----------+------------+------+------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+------+------+
- | 1 | risky | riski | 0 | 0 |
- | 2 | things | thing | 0 | 0 |
- | 4 | risky | riski | 0 | 0 |
- | 5 | risky | riski | 0 | 0 |
- | 6 | risky | riski | 0 | 0 |
- +------+-----------+------------+------+------+
- 5 rows in set (0.001 sec)
- MySQL [(none)]> INSERT INTO `videos_test` (`id`, `source_id`, `provider_id`, `title_unique`, `title`, `summary`, `tags`, `names`, `duration`, `thumb_exists`, `thumb_url`, `flipbook`, `straight`, `added_at`, `affected_at`, `removed_at`, `unlisted_at`, `hidden`) VALUES (1, 'gsdg', 532, 1, 'ghfh', 'risky', 'things', 'risky', 352, 0, 'adgsdg', '111', 1, 64, 134, 0, 13, 1);
- Query OK, 1 row affected (0.104 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos_test');
- +------+-----------+------------+
- | qpos | tokenized | normalized |
- +------+-----------+------------+
- | 1 | risky | riski |
- | 2 | things | thing |
- | 4 | risky | riski |
- +------+-----------+------------+
- 3 rows in set (0.001 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos_test', 1 AS `stats`);
- +------+-----------+------------+------+------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+------+------+
- | 1 | risky | riski | 1 | 2 |
- | 2 | things | thing | 1 | 1 |
- | 4 | risky | riski | 1 | 2 |
- +------+-----------+------------+------+------+
- 3 rows in set (0.001 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky-risky-risky!', 'videos_test', 1 AS `stats`);
- +------+-----------+------------+------+------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+------+------+
- | 1 | risky | riski | 1 | 2 |
- | 2 | things | thing | 1 | 1 |
- | 4 | risky | riski | 1 | 2 |
- | 5 | risky | riski | 1 | 2 |
- | 6 | risky | riski | 1 | 2 |
- +------+-----------+------------+------+------+
- 5 rows in set (0.001 sec)
- MySQL [(none)]> SHOW INDEX `videos_test` STATUS;
- +-----------------------------+--------------------------------------------------------------------------+
- | Variable_name | Value |
- +-----------------------------+--------------------------------------------------------------------------+
- | index_type | rt |
- | indexed_documents | 1 |
- | indexed_bytes | 29 |
- | ram_bytes | 6731 |
- | disk_bytes | 1207 |
- | disk_mapped | 0 |
- | disk_mapped_cached | 0 |
- | disk_mapped_doclists | 0 |
- | disk_mapped_cached_doclists | 0 |
- | disk_mapped_hitlists | 0 |
- | disk_mapped_cached_hitlists | 0 |
- | killed_documents | 0 |
- | killed_rate | 0.00% |
- | ram_chunk | 651 |
- | ram_chunk_segments_count | 1 |
- | disk_chunks | 0 |
- | mem_limit | 2147483648 |
- | ram_bytes_retired | 3259880177665 |
- | tid | 1 |
- | tid_saved | 0 |
- | query_time_1min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_5min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_15min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_total | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_1min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_5min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_15min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_total | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- +-----------------------------+--------------------------------------------------------------------------+
- 28 rows in set (0.001 sec)
- MySQL [(none)]> SHOW INDEX `videos` STATUS;
- +-----------------------------+-----------------------------------------------------------------------------------------------------------+
- | Variable_name | Value |
- +-----------------------------+-----------------------------------------------------------------------------------------------------------+
- | index_type | rt |
- | indexed_documents | 16302693 |
- | indexed_bytes | 12974319705 |
- | ram_bytes | 3314876237 |
- | disk_bytes | 7585329445 |
- | disk_mapped | 2381554573 |
- | disk_mapped_cached | 2381660160 |
- | disk_mapped_doclists | 1024353941 |
- | disk_mapped_cached_doclists | 1024372736 |
- | disk_mapped_hitlists | 419116213 |
- | disk_mapped_cached_hitlists | 419127296 |
- | killed_documents | 0 |
- | killed_rate | 0.00% |
- | ram_chunk | 933180485 |
- | ram_chunk_segments_count | 7 |
- | disk_chunks | 7 |
- | mem_limit | 2147483648 |
- | ram_bytes_retired | 0 |
- | tid | 261 |
- | tid_saved | 261 |
- | query_time_1min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_5min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_15min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | query_time_total | {"queries":1139, "avg_sec":0.274, "min_sec":0.001, "max_sec":4.628, "pct95_sec":1.017, "pct99_sec":3.029} |
- | found_rows_1min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_5min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_15min | {"queries":0, "avg":"-", "min":"-", "max":"-", "pct95":"-", "pct99":"-"} |
- | found_rows_total | {"queries":1139, "avg":579956, "min":0, "max":11905486, "pct95":2554543, "pct99":6673374} |
- +-----------------------------+-----------------------------------------------------------------------------------------------------------+
- 28 rows in set (0.030 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos');
- +------+-----------+------------+
- | qpos | tokenized | normalized |
- +------+-----------+------------+
- | 1 | risky | riski |
- | 2 | things | thing |
- | 4 | risky | riski |
- +------+-----------+------------+
- 3 rows in set (0.001 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky', 'videos', 1 AS `stats`);
- +------+-----------+------------+-------+-------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+-------+-------+
- | 2 | things | thing | 47448 | 49831 |
- | 4 | risky | riski | 27666 | 39158 |
- +------+-----------+------------+-------+-------+
- 2 rows in set (0.010 sec)
- MySQL [(none)]> CALL KEYWORDS ('Risky things are risky-risky-risky!', 'videos', 1 AS `stats`);
- +------+-----------+------------+-------+-------+
- | qpos | tokenized | normalized | docs | hits |
- +------+-----------+------------+-------+-------+
- | 2 | things | thing | 47448 | 49831 |
- | 6 | risky | riski | 55332 | 78316 |
- +------+-----------+------------+-------+-------+
- 2 rows in set (0.003 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement