News for hackers. Stuff that matters.
Re:Migration from Postgres to Datomic by iaabtpbtpnn on Thursday July 06, 2017 @09:47PM (#14715429)
Alternatively, you can automate this with triggers, where the client only needs to know about the entity table, but all updates to an entity cause the previous value to be inserted into another table entity_log. We do this and it works well for us.
Re:Migration from Postgres to Datomic by fanf2 on Friday July 07, 2017 @05:31AM (#14717138)
See also the Temporal Tables extension to PostgreSQL https://github.com/arkhipov/temporal_tables
Re:Migration from Postgres to Datomic by ComodoHacker on Friday July 07, 2017 @01:44AM (#14716346)
The whole point of storing history is ability for clients to explicitly query it (and sometimes manipulate it), isn't it?
Re:Migration from Postgres to Datomic by renesd on Friday July 07, 2017 @02:29AM (#14716505)
You can query a history table.
Re:Migration from Postgres to Datomic by ComodoHacker on Friday July 07, 2017 @02:36AM (#14716538)
Not if "client only needs to know about the entity table"
Re:Migration from Postgres to Datomic by Twisell on Friday July 07, 2017 @02:50AM (#14716586)
So If you need to give history access to your client I guess you can put up a "entity_history" function that will generate a snapshot entity table from his request and the log table.

It all depend on your need, RDMS schema are customely build to meet customers needs, I don't believe in proverbial Swiss knife tool anymore.