I am contemplating the design of an event logging system based on CouchDB.
What would be a good way of storing each event?
- one document with events as ‘attachments’
- one document per event
- one document per event-type, events as attachments
Other?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would set one document for event. If it is event logging system, event is main entity, right? So IMHO it should be document, not just some attachment. This solution gives you flexibility when searching/filtering events.