Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

start a generic event log in the db #351

Closed
chadwhitacre opened this issue Nov 1, 2012 · 3 comments
Closed

start a generic event log in the db #351

chadwhitacre opened this issue Nov 1, 2012 · 3 comments

Comments

@chadwhitacre
Copy link
Contributor

I looked into using triggers or rules for this, but we want to include the participant_id of the actor for each event, and we don't have that info at the db layer, only at the application layer. Therefore I propose to refactor our db access layer to make this possible. I plan to use hstore to hold information about each event so that it's easily extensible.

@chadwhitacre
Copy link
Contributor Author

The model we have with the tips table where we only ever INSERT, we never UPDATE--that's great in that it keeps historical information around and is fast to write, but it makes read queries cumbersome. Let's start using this generic event log for some things (I'm currently working on adding a suspended column to participants as part of #350), and then compare the two approaches when we're further down the road.

@chadwhitacre
Copy link
Contributor Author

Hmmm ... hstore values can only be strings (right?). Perhaps a generic solution won't work. It seems like we don't want to cast everything to a string here.

chadwhitacre added a commit that referenced this issue Nov 1, 2012
No time to get logging in place for this (#351).
@chadwhitacre
Copy link
Contributor Author

Pruning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant