Re: Issue updating a FileDataModel

2014-03-04 Thread Juan José Ramos
Thanks Sebastian. Although I got the FileDataModel updating correctly after following your advice, everything seems to point that I will need to use a database to back my dataModel. On Mon, Mar 3, 2014 at 3:47 PM, Sebastian Schelter s...@apache.org wrote: I think it depends on the difference

Re: Issue updating a FileDataModel

2014-03-03 Thread Sebastian Schelter
Hi Juan, IIRC then FileDataModel has a parameter that determines how much time must have been spent since the last modification of the underlying file. You can also directly append new data to the original file. If you want a to have a DataModel that can be concurrently updated, I suggest

Re: Issue updating a FileDataModel

2014-03-03 Thread Juan José Ramos
Thanks for the reply, Sebastian. I do not have concurrent updates, but they actually may happen very, very close in time. Would the fact of adding the new preferences to new files or appending to the existing one make any difference or does everything depends on the time elapsed between two

Re: Issue updating a FileDataModel

2014-03-03 Thread Sebastian Schelter
I think it depends on the difference between the time of the call to refresh() and the last modified time of the file. --sebastian On 03/03/2014 04:45 PM, Juan José Ramos wrote: Thanks for the reply, Sebastian. I do not have concurrent updates, but they actually may happen very, very close

Issue updating a FileDataModel

2014-03-02 Thread Juan José Ramos
I am having issues refreshing my recommender, in particular with the DataModel. I am using a FileDataModel and a GenericItemBasedRecommender that also has a CachingItemSimilarity wrapping a FileItemSimilarity. But for the test I am running I am making things even simpler. By the time I