Modeling and querying topic based updates subscriptions
19 views
Skip to first unread message
Maciek
unread,
May 7, 2012, 2:19:35 PM5/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
Just getting started with RavenDB (evaluating it for a small project
at work). Problem:
A user (subscriber) can subscribe (follow) topics. Updates are
published, each about one or more topics. What we want is an ability
to query for updates for a given subscriber based on his/her followed
topics. This is what I came up with:
class Subscriber
{
public string Id { get; set;}
public string[] FollowedTopics { get; set; }
}
class Update
{
public string Id { get; set; }
public string Title { get; set; }
// More irrelevant properties
public string[] Topics { get; set; }
}
Now I really don't know how to query this efficiently. MultiMap index?
Is the schema ok for the problem? Other suggestions?
Thanks,
Maciek
Oren Eini (Ayende Rahien)
unread,
May 7, 2012, 2:29:33 PM5/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message