orm
orm copied to clipboard
Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article.
Change PESSIMISTIC_READ to PESSIMISTIC_WRITE because otherwise the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem.
Please correct me if I'm wrong because I might be.