incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Resende <luckbr1...@gmail.com>
Subject Re: Subscription UI, was Re: [jira] Created: (PHOTARK-62) UI support to subscribe external albums
Date Mon, 11 Oct 2010 19:58:34 GMT
On Mon, Oct 11, 2010 at 12:53 PM, Avdhesh Yadav <avd@avdheshyadav.com> wrote:
> On Tue, Oct 12, 2010 at 1:00 AM, Luciano Resende <luckbr1975@gmail.com>wrote:
>
>> On Mon, Oct 11, 2010 at 12:17 PM, Avdhesh Yadav <avd@avdheshyadav.com>
>> wrote:
>> >
>> > I am Thinking of one use case.Lets say user wants to subscribe a remote
>> > album(e.g flicker).He adds a feedurl and clicks to subscribe button.Now
>> we
>> > have two options.
>> >
>> > - One we immediately fetch the meta data from the feedurl(name,titile,
>> > location) etc and save it to jcr repository.When user wants to view the
>> > album we fetch remote album meta  data from our local JCR and display
>> them.I
>> > think performance wise it beneficial but we have to sync our repo
>> > frequently.
>> >
>> > - Another option is that we only save the feedurl to our jcr repository
>> > initially and only fetch the meta data when user actually wants to view
>> the
>> > remote album.The benefit of this approach is that we do not need to
>> > frequently sync our jcr.
>> >
>> > Thoughts ?
>>
>> I'd say that we would want to let the user specify title, and the URL
>> of the remote album.
>>
>> As for storing stuff locally in our JCR repo and fetching it all the
>> time, we should have metadata stored locally to allow searching.
>>
>> As for how we go about approaching this, I'd recommend that we start
>> with retrieving it from the remote site and storing in a local cache
>> (e.g a map) inside of a @Scope("COMPOSITE") component, and then on a
>> second phase, we would add the full blow sync and test searching, etc.
>>
>> Thoughts ?
>>
>
> Yes its good idea to develop this functonality in small increments.+1
>
> I thinking of following data structure for the local cache.
>
> Map<String,List<Image> cache = new HashMap<String, List<image>();
> cache.put("title", remoteImages);
>
>

I need to look into the code again, particular with the recent
changes. But we might be able to do something like
Map<String, Album> cache ?



-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Mime
View raw message