Calling all QUERY-GURUS! Help on Collaborative Filtering
Posted by: Jennifer Moss
Date: January 11, 2007 11:11AM

Any experience with collab filtering out there? (ie. "People who liked THISBOOK also liked BOOKA, BOOKB, BOOKC")

I am trying to do a simple collaborative filtering query on one table, and it's crashing the db--so I must be doing sumpin' wrong.

The table has over 4 million records in it and is indexed on both BOOKTITLE and CUST_ID.

My query:
============
SELECT DISTINCT BOOKTITLE, Count(CUST_ID) CT
From BOOKS
WHERE (BOOKTITLE!='DaVinci Code')
AND CUST_ID IN (SELECT CUST_ID from BOOKS WHERE BOOKTITLE='DaVinci Code')
GROUP BY BOOKTITLE
ORDER By CT DESC
LIMIT 10
============

One person suggested making a second identical table and doing the subselect on that, since it wouldn't be recursive.

Any ideas??



Edited 1 time(s). Last edit at 01/11/2007 11:13AM by Jennifer Moss.

Options: ReplyQuote


Subject
Written By
Posted
Calling all QUERY-GURUS! Help on Collaborative Filtering
January 11, 2007 11:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.