|
Thank you for your guidance. My situation is as follows:
Currently more than 40,000 news is stored in the database, and it will continue to increase in the future! So it's impossible to have a queue per news
In addition, news is divided into large and small categories, a certain news must belong to a certain big category, and a small category under this big category, the structure of the message I send is such a composition
News ID + "|" + News category ID + "|" + News category ID
When the window service receives it, it uses a regular expression to separate the IDs in the message according to the vertical lines in the message, and then calls a stored procedure in the database, taking these 3 IDs as parameters, and the news ID is used to update a single piece of news. Of the news, the news sub-category ID is used to update the total PV of the sub-category, and the news sub-category ID is used to update the general PV of the sub-category! Please enlighten masters what the problem is! Thank you! |
|