aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-07-12 19:54:25 +0100
committerChristopher Baines <mail@cbaines.net>2019-07-12 19:57:13 +0100
commita6bd46b829070fca8843bc0155e5bf2b71d422dd (patch)
tree66cf242c4f1c0a53468870f17dfa43cc963223fa /.gitignore
parent05c828796514b7bcd8a613da8ab1d6a5402931fa (diff)
downloaddata-service-a6bd46b829070fca8843bc0155e5bf2b71d422dd.tar
data-service-a6bd46b829070fca8843bc0155e5bf2b71d422dd.tar.gz
Obtain a lock when inserting the data for a new revision
This is working towards running the jobs in parallel. Each job looks at the records in the database, and adds missing ones. If other jobs, running in different transactions insert the same missing records at the same time, this could cause an error. Therefore, to just avoid this problem, lock before inserting the data. This will allow the jobs to be processed in parallel, and it shouldn't have too much of an effect on performance, as the slow bit is outside of the transaction.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions