For example, communities across the country have a large amount of data and require real-time querying in the background
过去多啦不再A梦2017-05-16 17:20:28
It depends on the amount of data and how high your server configuration is.
If the data is only tens of thousands, using redis should be able to meet the requirements.
If the data exceeds 100,000, you can consider dividing it into different libraries (tables) according to the first letter of Pinyin, such as a-c, d-f, g-j, etc., and try to ensure that the search is within a small range
过去多啦不再A梦2017-05-16 17:20:28
This can be achieved using a library that converts pinyin to Chinese characters. Just like Baidu search, you enter pinyin and it will help you associate the Chinese character content