小编noa*_*arm的帖子

推荐结构?%70 写入 %30 读取。10M 排。200 次查询/秒。选择、更新、插入、搜索

以下是我需要在我的项目中做的事情:

1- 如果搜索词是新的且唯一的,则添加搜索词

2- 显示最近搜索的 1000 个搜索词(我不需要存储所有搜索词的日期)

3- 为一个搜索词显示 20 个相似的搜索词

4- 如果旧搜索词再次搜索,则更新搜索词的查看次数。

http://www.ptf.com/tai/tai+ve+dot+kich/和其他一些大型网站使用搜索词的第一个词来提高性能,我相信。但我不确定如何应用该结构。

此外,您可以从链接中了解我在做什么。

这是当前的结构,我知道它很糟糕:

mysql> use article; SHOW TABLE STATUS LIKE 'searches';
Database changed
+----------+--------+---------+------------+--------+----------------+-------------+-----------------+--------------+-----------+----------------+--------------
-------+---------------------+---------------------+-----------------+----------+----------------+---------+
| Name     | Engine | Version | Row_format | Rows   | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time| Update_time         | Check_time          | Collation       | Checksum | Create_options | Comment |
+----------+--------+---------+------------+--------+----------------+-------------+-----------------+--------------+-----------+----------------+--------------
-------+---------------------+---------------------+-----------------+----------+----------------+---------+
| searches | MyISAM |      10 | Dynamic    | 973577 |             40 | …
Run Code Online (Sandbox Code Playgroud)

mysql innodb myisam full-text-search architecture

5
推荐指数
1
解决办法
331
查看次数

标签 统计

architecture ×1

full-text-search ×1

innodb ×1

myisam ×1

mysql ×1