I worry that I have a fundamental misunderstanding of Elixir and SQLAlchemy. I'm having issues in a multithreaded server.
My model looks like this (nothing pretty, but it does what I want, at least for testing): http://pastry.se/450001/ in one thread I have my model imported, I create a new Message and append it to a User's ManyToMany messageBuffer then run model.session.commit(), nothing more complicated than user = model.User.query.first() m = model.Message(. . .) user.messageBuffer.append(m) model.session.commit() Another, already running thread then tries to pick up that user and access the messages in messageBuffer. user = model.User.query.first() user.messageBuffer The messageBuffer is empty. This may be a problem with how I'm handling my threads and control flow, and I don't want to make anyone here look at that kind of issue. But I do want to know I'm not using the library wrong before I go trying to restructure the rest of my code. -- You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en.
