News for hackers. Stuff that matters.
Re:Why I love databases by Slackwise on Sunday November 09, 2014 @02:13PM (#8580561)
I've always loved databases, but after having discovered write-only timestamped databases like Datomic, I can't imagine going backwards. It's a real shame that Datomic isn't fully open source.

(Aren't BigTable and Spanner also write-only and timestamped?)

Re:Why I love databases by threeseed on Sunday November 09, 2014 @06:06PM (#8581234)
> Datomic isn't fully open source

Couldn't agree more.

I've worked at two Clojure enterprises recently and both really wanted to use Datomic. But in this day and age nobody wants to commit their data to another proprietary database.

Re:Why I love databases by pjmlp on Monday November 10, 2014 @03:08AM (#8582484)
Maybe it is more about paying and less about being open source?
Re:Why I love databases by collyw on Sunday November 09, 2014 @03:23PM (#8580775)
Ok, assuming write-only means what I think it does, what is the point in a write only database? /dev/null/ is write only.
Re:Why I love databases by wtetzner on Sunday November 09, 2014 @03:36PM (#8580813)
I think he means append-only. You can add data, and you can query data, but you can't mutate.
Re:Why I love databases by michaelochurch on Sunday November 09, 2014 @04:39PM (#8581000)
Append-only means that every fact is timestamped and nothing is ever thrown away. (Actually, Datomic provides excision, because some regulatory use cases require it, but it's a "black magic" feature.) The idea is that you should never use UPDATE or DELETE, unless it's a hard requirement or a well-studied optimization. The fact that it's 58 degrees today doesn't invalidate the fact that it was 45 degrees yesterday. New facts may replace old ones relative to time-sensitive queries ("what is the most recent temperature?") but you never get rid of the old ones.

This means that queries often have an additional parameter, which is the time. So a type signature for a query type (in a Haskell-like language) would be:

    type Query a = ([Fact], Time) -> a
where the typical use case would use all stored facts and the current time. (Obviously, the DB itself isn't going to do a full-table scan for typical queries. There are optimizations involved. But, conceptually, a query is a function over all facts.)
Re:Why I love databases by dllthomas on Sunday November 09, 2014 @04:54PM (#8581029)
I've actually recently been thinking of extending this logic to my Anki geography deck. Populations change, but population at some specific point in time shouldn't.
Re:Why I love databases by windowsworkstoo on Sunday November 09, 2014 @03:35PM (#8580809)
Probably just means "immutable"
Re:Why I love databases by nickik on Sunday November 09, 2014 @06:10PM (#8581243)
I agree. For me Datomic is the new standard, and I use something else if there is a good reason too. As with everything there are many good reason to do so. It used to be PostgreSQL now its Datomic.