From 7cc2a455c7e10b319384f31fa51c428f8527abff Mon Sep 17 00:00:00 2001 From: Tristan Tarrant Date: Tue, 2 Feb 2021 08:26:57 +0100 Subject: [PATCH] Indexed Entities Static declaration of indexed entities https://issues.redhat.com/browse/ISPN-10292 --- Indexed Entitites.adoc | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Indexed Entitites.adoc diff --git a/Indexed Entitites.adoc b/Indexed Entitites.adoc new file mode 100644 index 0000000..ec049f9 --- /dev/null +++ b/Indexed Entitites.adoc @@ -0,0 +1,59 @@ +== Indexed entities + +Defining indexed entities in a cache configuration currently requires those entities to be present in the schema cache. For example: + +[source,xml] +---- + + + + entity.proto + + + +---- +requires the `entity.proto` entry. + +Adding entity schemas to the schema cache, however, can only be performed dynamically at runtime and not statically at startup. + +We should allow static configuration of the schema, either directly in the configuration as character data, or by referencing an external resource: + +[source,xml] +---- + + + + entity.proto + + + + + +---- + +On cache startup, the cache manager will ensure that the schema is added to the schema cache unless it is already present. +It is up to the user to ensure that external resources are identical across all nodes in the cluster.