From 5c4b33e8e6a015904cac5fb4699c1affc528e15b Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Wed, 9 May 2012 12:13:42 +0100 Subject: [PATCH] Made note stronger re: race condition Refs #478 --- mongoengine/queryset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mongoengine/queryset.py b/mongoengine/queryset.py index dc5bb808..e3f83c78 100644 --- a/mongoengine/queryset.py +++ b/mongoengine/queryset.py @@ -794,7 +794,9 @@ class QuerySet(object): keyword argument called :attr:`defaults`. .. note:: This requires two separate operations and therefore a - potential race condition exists. + race condition exists. Because there are no transactions in mongoDB + other approaches should be investigated, to ensure you don't + accidently duplicate data when using this method. :param write_options: optional extra keyword arguments used if we have to create a new document.