Comment 46 for bug 602211

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote : Re: [Bug 602211] Re: Monitoring Create/Move/Copy Files events

On 15 November 2010 21:08, Siegfried Gevatter <email address hidden> wrote:
> 2010/11/15 Michal Hruby <email address hidden>:
>> I still didn't understand why would the current_uri be part of event,
>> isn't it by definition a property of the subject? That way you don't
>> need to update dozens of events, just one subject entry...
>
> A subject is part of an event, there is no global "subject entry"
> since the subject represents a snapshot of an object at a particular
> time instant (with some properties -eg. mimetype- which it has at that
> instant).

I understand your confusion Michal. The deal is that while subjects
are conceptually disjoint from the event they are still stored
together with the event in the event table (as an optimization). Also
as Siegfried says - the event subject is a snapshot (like a normal log
statement) so it makes even more sense to store it together with the
event as we do.