Re: Need some help to avoid ConflictError
'Jürgen Gmach' via zodb <[email protected]> Mon, 8 Jul 2019 01:29:29 -0700 (PDT)
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1940_1931480802.1562574569560 Content-Type: multipart/alternative; boundary="----=_Part_1941_2096866302.1562574569560" ------=_Part_1941_2096866302.1562574569560 Content-Type: text/plain; charset="UTF-8" As a quick feedback and to close this discussion. I did the mass update on Friday night (I was not allowed to to it on Sunday because of working hours act), and it worked like a charm. I did the following: - added a transaction.commit after each update - added a except ConflictError and re-raised it again - shut down Nginx so no concurrent requests could hit the server - temp. deactivated the cron jobs which also act on the db -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/zodb/d535651f-bd35-4833-a495-bdcadb7f532f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1941_2096866302.1562574569560 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><p style=3D"font-family: Helvetica, Arial, sans-serif; fon= t-size: 15px;">As a quick feedback and to close this discussion.</p><p styl= e=3D"font-family: Helvetica, Arial, sans-serif; font-size: 15px;">I did the= mass update on Friday night (I was not allowed to to it on Sunday because = of working hours act), and it worked like a charm.</p><p style=3D"font-fami= ly: Helvetica, Arial, sans-serif; font-size: 15px;">I did the following:</p= ><ul style=3D"padding: 0px 0px 0px 40px; clear: both; font-family: Helvetic= a, Arial, sans-serif; font-size: 15px;"><li>added a transaction.commit afte= r each update</li><li>added a except ConflictError and re-raised it again</= li><li>shut down Nginx so no concurrent requests could hit the server</li><= li>temp. deactivated the cron jobs which also act on the db</li></ul></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;zodb" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">zodb+unsubscri= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/zodb/d535651f-bd35-4833-a495-bdcadb7f532f%40googlegroups.com?utm= _medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/zodb= /d535651f-bd35-4833-a495-bdcadb7f532f%40googlegroups.com</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_1941_2096866302.1562574569560-- ------=_Part_1940_1931480802.1562574569560--