This repository has been archived by the owner on Sep 23, 2019. It is now read-only.
Database syncronization #108
Labels
priority-medium
Required, but does not need to happen right now
scope-small
A relativly small change, does not change any architecture
The server creates a new thread for each request. Database access right now is not synchronized between requests. This can cause some funny business to happen, especially when the server is loaded and requests take a while. For example, if a test is submitted, but the registration is removed after the submit function checks for the registration but before it finishes grading the test. It would probably be best to use SQL row locks to ensure each item in the database is only touched by one request at a time.
The text was updated successfully, but these errors were encountered: