datalevin

2026-02-03T14:50:46.434309Z

Hello, is it safe to access both the datalog store and the kv store of a single datalevin db at the same time? I am considering using the kv store as a document store with references to it in the datalog store, but I'm unsure if I need to open them at separate locations or not. Attached to this question is whether or not Datalevin has similar constraits to Datomic in terms of the size of string values. I am trying to store text documents of many kb and datomic says not to store over 4096 bytes.

Huahai 2026-02-03T16:41:06.576399Z

Yes, you can access Datalog store and KV store of the same DB file at the same time. Datalog store is just a bunch of DBIs. No difference from other KV DBIs.

Huahai 2026-02-03T16:42:29.626399Z

We will release document store feature very soon. So I don't think you want to roll you own unless you have some specific needs. The value size restriction is 2GiB.

2026-02-03T16:43:35.193749Z

Sounds great, thanks! And the document store isn't generic documents, it's just some text that I wasn't sure would fit within the 4096 byte constraint on value sizes that Datomic has, and I wasn't sure if datalevin had a similar restriction.

2026-02-03T16:44:12.849329Z

Since the value size is 2 gigs though, I think I can just use :db.type/string and call it good

Huahai 2026-02-03T16:44:40.614899Z

You can store large values in Datalevin. This is one of the strengths of Datalevin.

👍 1