Say I have a database (postgresql in my case) where the only table I have is derived through declrative base.
The class also has a method Evaluate_Entry which gets a string, querys the DB for the right entry and evaluates the entry (returning some number). The same DB is accessed by several threads all import the same session. Sometimes this works and sometimes there is a contention between 2 threads and SQLAlchemy is stuck (when trying to read the same entry). Obviously I'm doing something wrong. Can someone shed a light on the proper manner of accessing the same DB? Is scoped_session relevant at all? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
