Re: [PATCH 8/9] parser: use Patch.objects.create instead of save()

2018-02-24 Thread Daniel Axtens
Andrew Donnellan writes: > On 22/02/18 01:17, Daniel Axtens wrote: >> Attempts to do parallel parsing with MySQL threw the following errors: >> >> _mysql_exceptions.OperationalError: (1213, 'Deadlock found when trying to >> get lock; try restarting transaction') >> >> Looking at the code, it w

Re: [PATCH 8/9] parser: use Patch.objects.create instead of save()

2018-02-21 Thread Andrew Donnellan
On 22/02/18 01:17, Daniel Axtens wrote: Attempts to do parallel parsing with MySQL threw the following errors: _mysql_exceptions.OperationalError: (1213, 'Deadlock found when trying to get lock; try restarting transaction') Looking at the code, it was thrown when we created a patch like this:

[PATCH 8/9] parser: use Patch.objects.create instead of save()

2018-02-21 Thread Daniel Axtens
Attempts to do parallel parsing with MySQL threw the following errors: _mysql_exceptions.OperationalError: (1213, 'Deadlock found when trying to get lock; try restarting transaction') Looking at the code, it was thrown when we created a patch like this: patch = Patch(...) patch.save() The SQL