Limitation in 256 symbols on strings used in tuples

Schema Data Reference | Datomic states: string values within a tuple are limited to 256 characters. Could this size be managed by customers? Also, would be interesting to know what is the purpose/reason for this limitation. Thanks

@jaret I will appreciate for any information you could give me, thanks

Hi! The limit is currently not configurable. This limit is intended to prevent very large strings from becoming part of a tuple identity/uniquness which would have a large performance impact. Tuples serve as secondary indexes and large strings or blobs are an anti-pattern in Datomic tuples.

Apologies for not responding here sooner. But in 2024 when you first logged this post I did create a story for dev to review around a feature request to support configurable string length in tuples. If you have any details you would like to share about your use case I can update that story with those details.

In our particular case, we’re just slightly over the limit — we need around 290 characters.
It’s a bit unfortunate that we’re only missing a few characters to be able to continue using strings in tuples.

It would be great if Datomic allowed users to configure the maximum string length for tuples themselves, fully understanding the potential performance implications.
That would significantly expand the usefulness of string tuples for cases like ours.