Replies: 3 comments 3 replies
-
@sguilhen just heads up. This affects event store. |
Beta Was this translation helpful? Give feedback.
-
@vramik - looking at the example you provided, the redirectUri occurs in the detailsJson, and this is a stored as a JSON in PostgreSQL (in the metadata). Therefore, AFAIK the length problem wouldn't occur in the map-JPA implementation. Having it as a separate column could help for performance if we would load the details without the redirect URI, which is not the case IMHO. Therefore I'd rather not put the redirectUri for the events in a separate column ... it is also no searchable fields for Events, isn't it? |
Beta Was this translation helpful? Give feedback.
-
Some pointers on JSON size when used in DBs: |
Beta Was this translation helpful? Give feedback.
-
There are some fields which could be very long. An example of such a field would be
redirectUri
.There has been some issues with its very long values in legacy jpa event store: https://issues.redhat.com/browse/KEYCLOAK-12473
To support this kind of fields postgresql offers datatype
text
: https://www.postgresql.org/docs/current/datatype-character.htmlIt is possible to generate new column with
text
datatype.But would it rather make sense to avoid storing such a filed inside json altogether and extract it e.g. to attribute table?
Beta Was this translation helpful? Give feedback.
All reactions