[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    Re: collection.getCollectionMeta().getLastModifiedTime()
From:       Natalia Shilenkova <nshilenkova () gmail ! com>
Date:       2009-12-11 2:40:14
Message-ID: 9AAE7CFC-1178-423E-92C2-DAD31654A4FF () gmail ! com
[Download RAW message or body]

Ferenc, 

You are correct, Xindice uses separate collection to store all metadata as XML, but \
vanilla metadata is pretty small, adding a little bit of information won't affect \
performance (getCollectionMeta().getLastModifiedTime() will read this document, too). \
However, if you need modification time often, getting it by some other means, without \
querying the database, can be a better choice.

Regards,
Natalia

 
On Dec 7, 2009, at 10:28 AM, Ferenc Pápai wrote:

> Hello Natalia,
> 
> I have implemented my own external solution to track last modification time, \
> ..before receiving your email. thanks
> 
> I could use custom meta-data for this as you mentioned, but 
> I wasn't 100% sure how metadata mechanism is implemented in Xindice.
> From the code I read and from the Xindice webpage I understood that is is stored as \
> one XML document. Thus any change in it should mean loading it in memory(it might \
> be cached) and saved back to disc. If metadata contains more data it might have an \
> impact on performance. 
> 
> thanks for your time,
> Ferenc
> 
> 
> 
> 
> 
> On Thu, Dec 3, 2009 at 01:42, Natalia Shilenkova <nshilenkova@gmail.com> wrote:
> Well, my guess is that last modified time for collection works similarly to file \
> system directory -- it gets updated whenever an entry added or deleted, but \
> modifying existing file does not change directory last modified time. 
> Interestingly enough, right now this behavior is inconsistent -- core.Collection \
> has updateDocument() method that changes collection's last modified time. 
> Can you use custom meta data for collection to track the changes?
> 
> Regards,
> Natalia
> 
> On Nov 30, 2009, at 7:39 AM, Ferenc Pápai wrote:
> 
> > Hello,
> > 
> > collection.getCollectionMeta().getLastModifiedTime()  method returns the time \
> > instant when the last NEW entry has been added to a collection. It does not cover \
> > case when the collection is updated (existent data is changed). 
> > As a user I'd be more interested when *anything* has been changed in a given \
> > collection. 
> > Is there a reason behind the current behavior?
> > 
> > thanks,
> > Ferenc
> > 
> 
> 


[Attachment #3 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">Ferenc,&nbsp;<div><br></div><div>You are \
correct, Xindice uses separate collection to store all metadata as XML, but vanilla \
metadata is pretty small, adding a little bit of information won't affect performance \
(getCollectionMeta().getLastModifiedTime() will read this document, too). However, if \
you need modification time often, getting it by some other means, without querying \
the database, can be a better \
choice.</div><div><br></div><div>Regards,</div><div>Natalia</div><div><br></div><div>&nbsp;<br><div><div>On \
Dec 7, 2009, at 10:28 AM, Ferenc Pápai wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite">Hello Natalia,<br><br>I \
have implemented my own external solution to track last modification time, ..before \
receiving your email.<br>thanks<br><br>I could use custom meta-data for this as you \
mentioned, but <br>I wasn't 100% sure how metadata mechanism is implemented in \
Xindice.<br> From the code I read and from the Xindice webpage I understood that is \
is stored as one XML document.<br>Thus any change in it should mean loading it in \
memory(it might be cached) and saved back to disc.<br>If metadata contains more data \
it might have an impact on performance.<br> <br><br>thanks for your \
time,<br>Ferenc<br><br><br><br><br><br><div class="gmail_quote">On Thu, Dec 3, 2009 \
at 01:42, Natalia Shilenkova <span dir="ltr">&lt;<a \
href="mailto:nshilenkova@gmail.com">nshilenkova@gmail.com</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: \
solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; \
margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: \
auto; ">Well, my guess is that last modified time for collection works similarly to \
file system directory -- it gets updated whenever an entry added or deleted, but \
modifying existing file does not change directory last modified time.<br>

<br>
Interestingly enough, right now this behavior is inconsistent -- core.Collection has \
updateDocument() method that changes collection's last modified time.<br> <br>
Can you use custom meta data for collection to track the changes?<br>
<br>
Regards,<br>
<font color="#888888">Natalia<br>
</font><div><div></div><div class="h5"><br>
On Nov 30, 2009, at 7:39 AM, Ferenc Pápai wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; collection.getCollectionMeta().getLastModifiedTime() &nbsp;method returns the \
time instant when the last NEW entry has been added to a collection.<br> &gt; It does \
not cover case when the collection is updated (existent data is changed).<br> \
&gt;<br> &gt; As a user I'd be more interested when *anything* has been changed in a \
given collection.<br> &gt;<br>
&gt; Is there a reason behind the current behavior?<br>
&gt;<br>
&gt; thanks,<br>
&gt; Ferenc<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>
</blockquote></div><br></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic