Ajax is used to collect document data by date. The number of articles per day is not certain. A few, thousands or tens of thousands. One commit cannot submit data of one day to the server at a time. 1. assume that 1000 articles are submitted, which are divided into 10 submissions. each time 100 articles (about 80 k) are submitted, how can we ensure the most... ajax is used to collect document data by date. The number of articles per day is not certain. A few, thousands or tens of thousands.
One commit cannot submit data of one day to the server at a time.
1. assume that 1000 articles are submitted, which are divided into 10 submissions. each time 100 articles are submitted (about 80 kB), how can we ensure that the server end saves these 1000 articles to the database (which cannot be repeated )?
2. if multiple clients submit data at the same time, how can we relieve the database insertion pressure?
Reply content:
Ajax is used to collect document data by date. The number of articles per day is not certain. A few, thousands or tens of thousands.
One commit cannot submit data of one day to the server at a time.
1. assume that 1000 articles are submitted, which are divided into 10 submissions. each time 100 articles are submitted (about 80 kB), how can we ensure that the server end saves these 1000 articles to the database (which cannot be repeated )?
2. if multiple clients submit data at the same time, how can we relieve the database insertion pressure?
You can first give all the article IDs, and then the server will use these article IDs to check if they are not so rigorous. you can just give the total number of articles to be updated, and then the server will finish updating to verify if the total number of articles has been updated.