As our documentation ability is growing more sophisticated, I’ve taken 
advantage of this to update and expand the “Expiration” section of the 
documentation, including with some links to the outside regarding the important 
concepts.

I’m running out the door and the docs are still building, but if in 15 minutes 
you check out 
http://docs.sqlalchemy.org/en/rel_0_9/orm/session.html#refreshing-expiring the 
new content should be up (if the first word “expiring” isn’t hyperlinked, then 
the build didn’t work).  If those involved can proof it, assuming the build 
succeeds, that would be great, thanks !




On Feb 23, 2014, at 12:15 PM, Gunnlaugur Thor Briem <gunnlau...@gmail.com> 
wrote:

> It means that an object in memory (or some of its attributes), representing 
> an entity in the DB, is no longer considered to reflect the state of that 
> entity accurately because the entity may have changed in the DB. So next time 
> attributes are read from the object, fresh DB state is queried. See 
> http://docs.sqlalchemy.org/en/latest/orm/session.html#refreshing-expiring “To 
> clear out the currently loaded state on an instance, the instance or its 
> individual attributes can be marked as “expired”, which results in a reload 
> to occur upon next access of any of the instance’s attrbutes.”
> 
> Gulli
> 
> 
> 
> On Sun, Feb 23, 2014 at 10:00 AM, Bao Niu <niuba...@gmail.com> wrote:
> I read the documentation several times yet still didn't find an official 
> definition for "expired object", although it is used quite often. To my 
> understanding, it means when you update some attributes on a persistent 
> object, so those affected attributes that are still lying in database become 
> "expired". Is my understanding correct, please? Thanks very much.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to