On Feb 24, 10:26 am, Graham Higgins <[email protected]> wrote:
> On Feb 24, 3:35 pm, Isaac <[email protected]> wrote:
>
> > Shabti sounds interesting though I've not looked at it.
>
> > Here I've updated the pastebin thingy (and deleted the old
> > one):http://pylonshq.com/pasties/e0131b490dafc08b30633c506ca29931
>
> Could you explain the reasoning behind your choice of kwargs to
> sessionmaker? Are they related to using elixir or are they dictated by
> the application?
>
> ++ # you may want different args to sessionmaker here:
> ++ Session = orm.scoped_session(orm.sessionmaker(autoflush=False,
> expire_on_commit=False))
Hi,
Well, the best explanation I have is that these values are how I want
the Session to behave, which is why I put a comment saying you may
want to put something else there. Maybe some other values are more
sane for a typical or smaller app than the one I'm working on at the
moment (which is not small, and probably not typical). If there is
some agreement on that, I'll gladly make a new pastie with a
correction. :)
I suggest reading <http://www.sqlalchemy.org/docs/05/reference/orm/
sessions.html#sqlalchemy.orm.sessionmaker> for more explanation of
what those options do... try them out, and then decide what's right
for your situation/app.
HTH.
--isaac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---