Hi, I think storing remote images in the local repository is a not a very good idea.Instead we can store some meta data like title,description , image url etc.Users can "resync" contents automatically (Periodically) and manually(from admin ui).Only indexes and meta data should be updated during the "resyncs" but there would still chances that the contents are not in sync for a while.But thats fine because quering very frequently would kill the performance.
No, the image itself will not be store, it doesn't even make sense to store the same image in two different places. When I said image, I should have said the Image object, where the search component can get all metadata from and index it for later search. For the search component, what does the sync actually doesn't matter, it only needs to be notified whenever it changes, then the search index can be updated. "resyncs" but there would still chances that the contents are not in sync for a while.But thats fine because quering very frequently would kill the performance. I think that's fine too, the user needs to decide whenever he wants to sync the contents, and live with the limits of not syncing it if he chooses not to. Regards, Phillipe Ramalho On Sun, Jun 13, 2010 at 10:45 AM, Luciano Resende <[email protected]>wrote: > On Sun, Jun 13, 2010 at 6:55 AM, Avdhesh Yadav <[email protected]> > wrote: > > Hi, > > > > I think storing remote images in the local repository is a not a very > good > > idea.Instead we can store some meta data like title,description , image > url > > etc.Users can "resync" contents automatically (Periodically) and > > manually(from admin ui).Only indexes and meta data should be updated > during > > the "resyncs" but there would still chances that the contents are not in > > sync for a while.But thats fine because quering very frequently would > kill > > the performance. > > > > > > +1 > > > On Sun, Jun 13, 2010 at 3:21 PM, Phillipe Ramalho < > >> > The search component needs to be notified when a picture is added or > >> > removed, then the search index can be updated, otherwise the search > >> results > >> > could retrieve pictures that no longer exist. Take a look into my > latest > >> > patch at [1] and see how jcralbum notifies the gallery, about > >> added/removed > >> > pictures. The search component will be listening to changes notified > to > >> the > >> > gallery. > >> > > > Based on Avdhesh comments above, the notification of a "picture added" > or "picture removed" is something conceptual and does not require the > actual picture to be stored locally, so, if a new image is added in > the remote subscription, when then sync occurs, adding the "image > metadata" should trigger the search indexer event. > > > -- > Luciano Resende > http://people.apache.org/~lresende <http://people.apache.org/%7Elresende> > http://twitter.com/lresende1975 > http://lresende.blogspot.com/ > -- Phillipe Ramalho
