• Michael Salim's avatar
    Workaround for DB lock OperationalError with sqlite3 backend. · 48deead9
    Michael Salim authored
    An mpi4py test program with the Python sqlite3 wrapper has no trouble
    with concurrent DB insertions from several tens of processes.  The issue
    appears to be in the Django-sqlite3 wrapper.
    This patch simply wraps save() in a loop that intercepts
    OperationalError until the save is successful.