refactor: implement transaction management for db operations
Replaced single transaction operations with transaction blocks for
critical database mutations to ensure atomicity and consistency,
preventing race conditions and ensuring that operations like checking
for existing records and subsequent inserts or updates are atomic:
Implement transactional blocks for addTag, updateProfile
and register functions to handle duplicate checks and data
insertion/updating in a single transaction scope
Handle specific error messages in a more controlled manner by
checking exception types and messages
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.