uni
uni copied to clipboard
Make database/cache operations ACID
Currently, some database/cache operations such as saveNewCourses are not atomic due to the use of await. These operations should be made ACID compliant, either with the use of features provided by the database driver (eg. transactions) or with concurrency control implemented by us (eg. with locks).
Operations not being ACID-compliant can lead to invalid database/cache states.