launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #04162
Re: LP API: snapshots and collections
Hi,
I know of two exceptions. (If this didn't change since last time I look). Both
bugs and answers notifications look at the snapshot of the messages collection
to see if a new message was added. This is to make decisions about the
notifications.
So at least the messages collection on Bug and Question should be snapshoted
unless we change the way this notification code was changed.
--
Francis J. Lacoste
francis.lacoste@xxxxxxxxxxxxx
On August 6, 2010, Curtis Hovey wrote:
> On Fri, 2010-08-06 at 18:06 +1200, Robert Collins wrote:
> > Is there ever a case where a CollectionField should not be marked
> > 'doNotSnapshot' ?
> >
> > If not, or if its very rare, I'm wondering if we can nip a bunch of
> > timeouts/slow api/slow pages quickly by changing CollectionField to be
> > automatically doNotSnapshot (and offer a snapshot() to enable it where
> > it should be enabled).
>
> I cannot think of an example where it is possible for a user to directly
> edit a list linked to an object and we record that activity or email it.
>
> There Will still be a big chunk of Attributes on interfaces that are not
> exported, and they are returning collections. Looking at IPerson, I see
> specifications, assigned_specs, etc...
Attachment:
signature.asc
Description: This is a digitally signed message part.
References