by jared314 · 11y ago · 0 comments
Having the eventstore separate means that you can keep Datomic focussed at what it's really good at. When you find good aggregate views for your events, you can scan through old events and populate Datomic.
This separation also means that you can make the events as rich and plentiful as you want without burdening Datomic with stuff that you don't have a good way to query anyhow.
For example of I have a 'make_user_preferred' event, I just transact the database and then add any metadata I need to the Datomic transaction.
Datomic is Event Sourcing if you create a realized version of your database on every event. It is just smart about it and keeps diffs.
I still don't understand.
The transaction log, in datomic, can be queried as easily as you would query the rest of the data. The view exists on the client. Changes are already queued by the transactor. And, changes are pushed to the clients from the transactor.
In certain cases you can definitely put the events directly into the transactions. In our case, it's just not the right fit and I suspect that many others will find the same constraints apply.
Ok, so it was a technical issue. I assume you attempted to change the indexing.
The technical reasoning did not come through in the project page or your comments.