datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
Brandon Olivier 2020-10-16T15:19:41.024900Z

@lennart.buit This is local. It should be the on-prem version, but I’m connecting via the datomic api client.

2020-10-16T15:20:38.025800Z

Iirc you can’t use fulltext from the client api

roninhacker 2020-10-16T16:29:30.026300Z

We're running with datomic on the backend and datascript on the front end. I'd like to just mirror datomic ids on the client side, but datascript uses longs for its ids, which means some datomic ids don't fit. Are there datomic settings that can constrain the id space? (if not I'll just write some transformation glue on the FE)

Brandon Olivier 2020-10-16T18:30:26.026600Z

That was my suspicion, but I couldn't confirm. So I need to convert my application to use the peer server internally?

Brandon Olivier 2020-10-16T18:30:34.026800Z

or I guess "should", not "need"

favila 2020-10-16T18:30:56.027300Z

Datomic also uses longs....

favila 2020-10-16T18:32:02.028700Z

Do you mean doubles? Are you worried about the 52 bit integer representation limit?

2020-10-16T19:34:30.028900Z

That depends on what you’d like to achieve. If your goal is to move to the cloud at some point, you may want to consider sticking with the client API and instead using some other store for your full text needs. Here is a thread on the datomic forums about it: https://forum.datomic.com/t/datomic-fulltext-search-equivalent/874/6

2020-10-16T19:34:59.029200Z

I can’t decide what your architecture should look like, but this is advice I’ve seen before 🙂

roninhacker 2020-10-16T22:24:28.029500Z

ah, yes, I guess it's not strictly datatype I'm worried about, but datascript's id limit of 2147483647

roninhacker 2020-10-16T22:26:04.029700Z

(which seems to be 2^31 -1 )

favila 2020-10-16T23:17:30.032900Z

D/tx->t will give you a 42 bit unique id per entity, which is extremely likely to be < 32 bits u less you have a huge number of entities or transactions. Maybe that’s useful info for some clever encoding scheme

favila 2020-10-16T23:42:03.035400Z

If the segment churn on your db is low, consider keeping a valcache volume around and remounting it for this big query job

roninhacker 2020-10-16T23:44:40.035600Z

hmmm, thank you