mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r685365 - /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
Date Tue, 12 Aug 2008 23:09:57 GMT
Author: srowen
Date: Tue Aug 12 16:09:56 2008
New Revision: 685365

URL: http://svn.apache.org/viewvc?rev=685365&view=rev
Log:
Small optimization -- no point in seeing if the item actually exists yet in this method

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java?rev=685365&r1=685364&r2=685365&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
Tue Aug 12 16:09:56 2008
@@ -275,7 +275,7 @@
 
   private List<? extends Preference> doGetPreferencesForItem(Object itemID) throws
TasteException {
     log.debug("Retrieving preferences for item ID '{}'", itemID);
-    Item item = getItem(itemID);
+    Item item = getItem(itemID, true);
     Connection conn = null;
     PreparedStatement stmt = null;
     ResultSet rs = null;



Mime
View raw message