I have modified the NearestNUserNeighborhoud to add some extra value to users that belong to a trust network. The trust network is in a database (MySQL).
When I recommend items for a certain users it works well and provides the recommendations.
However when I evaluate RMSE is extremely slow when it make the comparisons of users that are in the database / trust network of the user. (It runs thousand of select statements)
The first data model is on a csv file and it is on the form userid itemid rating.Whereas in the database is in the form truster trustee.
What would you suggest to evaluate RMSE in a reasonable amount of time?