Hi all guys.
I tried to look for around a way to set a datetime field with the
CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything?
Imagine some processes running on parallel servers: what when one
process has to set a datetime field to "now" where "now" MUST BE set
using the db
On 28 Set, 11:06, PyMan <[EMAIL PROTECTED]> wrote:
> Just for notice...in few words...
>
> i've modified some files of django.db.models putting a decorator
> function on all those functions that are critical (get_or_create,
> save, create, delete, add, remove, etc.). T
Just for notice...in few words...
i've modified some files of django.db.models putting a decorator
function on all those functions that are critical (get_or_create,
save, create, delete, add, remove, etc.). The decorator function just
does :
* RLock.acquire
* execute the requested function
* RLo
Coming back to my (and not also) problem...
More exact information about original post:
* The DB is postgresql 8.2, but it could be anyone else (I mean I must
be multi cross DB-platform).
* I'm using Django on trunk.
* Actually I described something that is a multi-threaded backend
application...
Hi all :)
I have the following problem.
I have a function that do some get_or_create on model X giving as
parameters the field Y and Z. The same function is running on
different threads, so it can happen that more get_or_create on model X
and fields Y/Z are called at the same time. It can also h