I've just messed up a bit with objectstore.flush(), clear() and .refresh(). What I should use when? I've read SQLalchemy docs very carefuly, but thats doesn't make things clearer for me - it describes what happenes during execution of that methods, but no info about when I should use it. Of course, with deep understanding of SQLAlchemy internals docs are very helpful, but I'm new to it.
I now that flush stores data in sql database, but does it affect following queries? Should I flush data before queries to get correct info? Does flush reproduce all sqlalchemy events in sql database, or just make database state up-to-date to mapper state? If I create new child and append to parent - should I flush(), or refresh()? Which one - child or parent? Do I need to make session.clear() and when I need to do it if yes? etc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
