On 07/19/2012 02:50 PM, Sean Owen wrote:
Hmm, call refresh() on reloadModel after it's set up?
On Thu, Jul 19, 2012 at 11:54 AM, Nick Katsipoulakis <[email protected]>wrote:
On 07/18/2012 11:56 PM, Sean Owen wrote:
Unless your data set is tiny, like 100K records or less, it is not going
to
be feasible to run recommendations off the database directly. It's just
too
data intensive. You need to read into memory to make real-time recs. Check
out ReloadFromJDBCDataModel.
Dear Sean,
Thank you for your answer. I tried to understand the use of
ReloadFromJDBCDataModel but I am not sure If I am using it right:
Well, the problem is that it never sets up.
System.out.println("Step 0.");
ReloadFromJDBCDataModel reloadModel =
new ReloadFromJDBCDataModel(new
MySQLBooleanPrefJDBCDataModel(dataSource,
"user_preferences", "user_id", "item_id",
"timestamp"));
System.out.println("Step 1.");
It never prints out "Step 1". I also added the refresh that you have
told me, but nothing changes.