You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Eduardo Gurgel Pinho (JIRA)" <ji...@apache.org> on 2012/09/11 15:43:08 UTC
[jira] [Commented] (MAHOUT-770) Add CassandraDataModel
[ https://issues.apache.org/jira/browse/MAHOUT-770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453020#comment-13453020 ]
Eduardo Gurgel Pinho commented on MAHOUT-770:
---------------------------------------------
The *removePreference* method does not remove things from the column families userIDs and itemIDs. Why this behavior?
{code:java}
@Override
public void removePreference(long userID, long itemID) {
Mutator<Long> mutator = HFactory.createMutator(keyspace, LongSerializer.get());
mutator.addDeletion(userID, USERS_CF, itemID, LongSerializer.get());
mutator.addDeletion(itemID, ITEMS_CF, userID, LongSerializer.get());
mutator.execute();
// Not deleting from userIDs, itemIDs though
}
{code}
> Add CassandraDataModel
> ----------------------
>
> Key: MAHOUT-770
> URL: https://issues.apache.org/jira/browse/MAHOUT-770
> Project: Mahout
> Issue Type: Improvement
> Components: Collaborative Filtering
> Affects Versions: 0.5
> Reporter: Sean Owen
> Assignee: Sean Owen
> Priority: Minor
> Labels: cassandra, collaborative-filtering, datamodel, hector, recommender, thrift
> Fix For: 0.6
>
> Attachments: MAHOUT-770.patch
>
>
> In the spirit of MongoDBDataModel I'd like to add a CassandraDataModel as a backing store for non-distributed recommenders.
> It takes a somewhat different approach, heavily reliant on in-memory caching, as Cassandra is a different beast.
> Patch is attached. This goes in integration, not core. It uses Hector, not the raw Thrift API.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira