Fork me on GitHub
#datomic
<
2019-04-30
>
hadils15:04:16

Hi! How do I append data to a cardinality/many datom? Do I have to fetch it first, append it then transact it? I am using Datomic Ions.

Joe Lane15:04:37

You just transact a vector containing the new things you want to add.

Joe Lane15:04:11

It does not replace the value, in conj’s those new value onto the existing collection.

hadils15:04:30

Thanks @lanejo01! Should I be reading the on-prem docs as well as the cloud docs?

Joe Lane15:04:49

I’ve often asked myself that question haha. For fundamental things like the above I think its ok. There will be some subtleties. Usually I look at Cloud docs, then on-prem docs if I can’t find something in the Cloud docs.

hadils15:04:15

Good to know @lanejo01! I will use that approach.

Dustin Getz16:04:28

@hadilsabbagh18, you definitely want to watch the day of datomic talks which cover the core information model, which is the same in both onprem and cloud

hadils16:04:59

Good suggestion @dustingetz. I have watched one of the talks and understand the basics. I need to dive deeper I think.

timgilbert16:04:34

Say, is it necessary to specify :db/index true on :db.type/ref entities in order to get the backrefs to be indexed?

marshall16:04:48

@timgilbert nope. all ref type attributes are automatically indexed in both directions

timgilbert16:04:13

👍 Thanks!