Dead lock after updating indexes
From https://discuss.tryton.org/t/trytond-admin-6-6-stuck-updating-database/5659 If the update needs to delete records from a table for which an index has been created, a lock is still ketp on the table which creates a deadlock.