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
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
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
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