Skip to content

Commit d396e99

Browse files
author
Jim Avery
committed
Updated README
1 parent 9063283 commit d396e99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ ORDER BY R.ratingval
7979
LIMIT 10
8080
```
8181

82+
When you issue a query such as this, the only interesting data will come from the three columns specified in the RECOMMEND clause. Any other columns that exist in the specified ratings tables will be set to 0.
83+
8284
Currently, the available recommendation algorithms that could be passed to the USING clause are the following:
8385

8486
ItemCosCF: Item-Item Collaborative Filtering using Cosine Similarity measure.
@@ -100,7 +102,7 @@ Users may create recommenders apriori so that when a recommendation query is iss
100102
CREATE RECOMMENDER MovieRec ON MovieRatings
101103
USERS FROM userid
102104
ITEMS FROM itemid
103-
EVENTS FROM ratingid
105+
EVENTS FROM ratingval
104106
USING ItemCosCF
105107
```
106108
Similarly, materialized recommenders can be removed with the following command:
@@ -109,6 +111,8 @@ Similarly, materialized recommenders can be removed with the following command:
109111
DROP RECOMMENDER MovieRec
110112
```
111113

114+
Note that if you query a materialized recommender, the three columns listed above will be the only ones returned, and attempting to reference any additional columns will result in an error.
115+
112116
### More Complex Queries
113117
The main benefit of implementing the recommendation functionality inside a database enine (PostgreSQL) is to allow for integration with traditional database operations, e.g., selection, projection, join.
114118
For example, the following query recommends the top 10 Comedy movies to user 1.

0 commit comments

Comments
 (0)