Re: How to stop the increment of Primary Key field when an trasaction fails.

2022-04-24 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I'm going to answer your question, but please read the below as well about where to ask questions in future. You can't stop ID's being consumed during a transaction - databases do this by default to avoid any potential confusion between "versions" of objects with the same ID. But if you absol

general interest in faster bulk_update implementation

2022-04-24 Thread Jörg Breitbart
Hi there, I have recently tried to tackle the known performance issues of bulk_update. For more context plz see the original thread: https://code.djangoproject.com/ticket/31202 In another issue we kinda ended up at the same idea again for a different reason (https://code.djangoproject.com/ti

How to stop the increment of Primary Key field when an trasaction fails.

2022-04-24 Thread Satyabrata Sbr
How can i stop auto increment of primary key field of a model when some exception occurs inside transaction.atomic()? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop