News for hackers. Stuff that matters.
Re:Rich Hickey: Deconstructing the Database by sbmassey on Tuesday August 28, 2012 @09:04PM (#4446612)
How would you idiomatically fix invalid data in Datomic? for example, if you needed to update a badly entered value in a record, but keep the record's timestamp the same so as not to screw up historical queries?
Re:Rich Hickey: Deconstructing the Database by bmurphy1976 on Tuesday August 28, 2012 @09:50PM (#4446718)
You wouldn't. You can't change history either. You would insert a compensating transaction and the data would be fixed from that time forward when you inserted the compensating transaction.
Re:Rich Hickey: Deconstructing the Database by sbmassey on Tuesday August 28, 2012 @11:25PM (#4446930)
Figures. So I guess that, in the case where you both need to worry about fixing invalid data, and also need to do historical queries, you would have to add your own timestamp to the data to represent the actual time of the event, because the built-in timestamp is just giving you the time of the state of the database. Hopefully that wouldn't get too hairy.
Re:Rich Hickey: Deconstructing the Database by puredanger on Tuesday August 28, 2012 @10:08PM (#4446759)
You can retract facts, just like you can assert facts.