Re: Document design: Logging accesses to an item by a user

2011-11-13 Thread Marian Steinbach
Sounds like the relation-document way (having a songaccess doc, equivalent to having had a songaccess table) would be the easiest one. I'll have to look into update handlers though. Thanks guys!

Document design: Logging accesses to an item by a user

2011-11-12 Thread Marian Steinbach
Hi! I'm trying to think in CouchDB documents (coming from an SQL perspective) and I am wondering how I should set up my documents to represent the following. I have users who play songs as often as they want. Whenever they access a song, in the SQL world I add a record to a song_access table that