Welcome! Please see the About page for a little more info on how this works.

0 votes
in Cloud by

The page https://docs.datomic.com/cloud/schema/schema-reference.html states that:
- Strings are limited to 4096 characters.

And the dev-local page https://docs.datomic.com/cloud/dev-local.html states:
- dev-local limits strings to 4096 characters.

Is the actual cloud environment string length longer than 4k chars? And what is the real limit.

1 Answer

0 votes
by

The limit in Cloud is 4,096 and are correct as documented in both cases. You should write programs that adhere to this documentation because the implementation could enforce the documented limit at any time.

by
I ran into this when trying to use some data in an actual environment couldn't be inserted locally. It had a string that was slightly longer than 4k.

So do I need to worry that my db could break in the future because it already has a string over 4k chars?

I think the documentation should include some suitably scary disclaimer because it wasn't clear to me that application code should enforce this limit or the db might break.
...