Re: SQLAlchemyDA vermehr doppelte einträge beim Einfügen
Andreas Jung <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Organization | ZOPYX Ltd & Co. KG |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Warum beantwortest Du nicht einfach meine Frage? :-) Andreas Vladislav Vorobiev wrote: > Damit wir uns auch richtig verstehen. > > Es werden schon alle drei abfragen oder keine ausgeführt. Die > Konsistenz der Daten bleibt erhalten. > > Endwerder: (normal fall) > >>> db.addNewOrderSQL() >>> db.addMachNochEtwas1() >>> db.addMachNochEtwas2() > > oder (doppelte bestellung) > >>> db.addNewOrderSQL() >>> db.addMachNochEtwas1() >>> db.addMachNochEtwas2() > >>> db.addNewOrderSQL() >>> db.addMachNochEtwas1() >>> db.addMachNochEtwas2() > > Gruß > Vlad > > Am 21. Juli 2010 13:13 schrieb Andreas Jung <[email protected]>: >> MySQL verwendet transaktionsfähige Tabellen? >> -aj >> >> Am 21. Juli 2010 13:10 schrieb Vladislav Vorobiev >> <[email protected]>: >>> Hallo, >>> >>> wir betreiben hier einige online-shops unter Verwendung von >>> mysql-datenbank. >>> Seit der Umstellung auf Products.SQLAlchemyDA als Datenbankadapter >>> kommt es vermehrt zu Doppelten Einträgen bei einer Berstellung. >>> >>> Bei eine Bestellung schreiben also mehrere in die Datenbank. >>> >>> db.addSQL1() >>> db.addSQL2() >>> db.addSQL3() >>> >>> return self.REQUEST.RESPONSE.redirect(xxxx) >>> >>> Der Shop steht nicht unter last, ca. 10 Bestellungen pro Stunde. Von >>> den 10 Bestellungen ist mindestens eine Doppelt. Vermutlich hat es >>> etwas mit den Transaktionen auf sich. Der Code ist einfach, deshalb >>> weiß ich nicht wirklich wo man suchen sollte. >>> >>> Hat jemand eine Idee wie man es optimieren könnte. Mysql Server ist in >>> der 5.1.48-1 Version. >>> >>> -- >>> Best Regards >>> Vlad Vorobiev >>> >>> >>> _______________________________________________ >>> zope mailing list >>> [email protected] >>> https://mail.dzug.org/mailman/listinfo/zope >> >> >> >> _______________________________________________ >> zope mailing list >> [email protected] >> https://mail.dzug.org/mailman/listinfo/zope >> >> > > > - -- ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope & Plone D-72070 Tübingen | Produce & Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxG2RQACgkQCJIWIbr9KYwkqgCeL9z49vXc7hINFa/hloOVkHFE gJsAn3qHPXX/YSywKi3wpusErEiE+AY8 =mi6U -----END PGP SIGNATURE----- _______________________________________________ zope mailing list [email protected] https://mail.dzug.org/mailman/listinfo/zope
lists.vcf
(text/x-vcard, 316 B)
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[email protected] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard