|
|
|
|
|
by eserorg
6070 days ago
|
|
That would be very interesting to read. We're looking at implementing a tagging system for navigating through a large proprietary datastore of oil and gas well data. The problem we're running into is scaling conjunction queries without blowing-out our hardware budget -- 100's of tags per item with tens of millions of items, updated daily. |
|
Basically you need a lot of RAM, and to put in keys called something like "tag:<tagid>" all the IDs of your products having such an ID.
Then if you want all the products IDs having as tags both foo, and bar, you ask Redis the following: SINTER tag:10 tag:20
Using SINTERSTORE is also possible to put the result into a new key, and then use SORT to sort this data.