Re: Django 1.8 Transaction Begin

2015-06-18 Thread Erik Cederstrand
> Den 18/06/2015 kl. 17.49 skrev Carl Meyer : > > I wrote a blog post [2] which discusses this in more detail. It's about > PostgreSQL instead of MySQL, but the part near the beginning about PEP > 249 and Django applies equally well to MySQL (I think; I'm not very > familiar

Re: Django 1.8 Transaction Begin

2015-06-18 Thread Carl Meyer
Hi Kate, On 06/18/2015 04:05 AM, Katarzyna Łabędź wrote: > Maybe i didn't understand it correctly. > > I know Django support transactions, but isn't it do it on commit? > I just tried to find the BEGIN statement inside them and i could not > find it - searched through internet and what I found

Re: Django 1.8 Transaction Begin

2015-06-18 Thread James Bennett
As the documentation states, the default behavior in Django is "autocommit", relying on the database's autocommit behavior. This means Django does not need to issue explicit BEGIN and COMMIT statements, so by default Django does not issue them unless the ORM determines that a requested operation

Re: Django 1.8 Transaction Begin

2015-06-18 Thread Katarzyna Łabędź
Thanks Russell, Maybe i didn't understand it correctly. I know Django support transactions, but isn't it do it on commit? I just tried to find the BEGIN statement inside them and i could not find it - searched through internet and what I found was a bunch of people asking the same question -

Re: Django 1.8 Transaction Begin

2015-06-18 Thread Katarzyna Łabędź
Thanks Russel, Maybe i didn't understand it correctly. I know Django support transactions, but isn't it do it on commit? I just tried to find the BEGIN statement inside them and i could not find it - searched through internet and what I found was a bunch of people asking the same question -

Re: Django 1.8 Transaction Begin

2015-06-17 Thread Russell Keith-Magee
Hi Katarzyna, I'm not sure what gave you the impression that Django doesn't support transactions - there's a whole section in the documentation about this very topic: https://docs.djangoproject.com/en/1.8/topics/db/transactions/ You don't explicitly execute a "BEGIN" statement, but you can

Django 1.8 Transaction Begin

2015-06-17 Thread Katarzyna Łabędź
Hi! As far as i know Django 1.8 does not support BEGIN transaction for mysql. Is there a way to invoke this? How to invoke BEGIN Transaction in a raw sql? I cannot find it in documentation... -- You received this message because you are subscribed to the Google Groups "Django users" group.