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 Entweder Euer MySQL Server arbeitet nicht transaktional (auch wenn Du das behauptest) oder die SQL Methoden werden mehrfach ausgeführt (Benutzer klickt mehrfach oder durch Wiederholung des Requests im Rahmen der ZODB ConflictResolution). Letzteres sollte eigentlich kein Problem sein, weil SQLAlchemy via z3c.sqlalchemy und SQLALchemy in die ZODB Transaktion eingehängt ist. Sorry...nie beobachtet (als Autor von z3c.sqlalchemy und SQLALchemyDA)...allerdings verwende ich auch nur vernünftige Datenbank...keine Erfahrung mit MySQL...mit Postgres kennne ich die Probleme nicht. Falls das Problem (einfach) reproduzierbar ist - -> Bugreport schreiben. - -aj Vladislav Vorobiev wrote: > Ja, Inodb. > > >> 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/ iEYEARECAAYFAkxG3sEACgkQCJIWIbr9KYzajgCgm/NRqD7CUMsB6KFPgvuB/aw4 BfoAnAnwWFCI71wx/8OVrKjyxxlyB9Gg =ky16 -----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