Enabling Partitioning in HAPI FHIR
Follow these steps to enable partitioning on the server:
The PartitionSettings bean contains configuration settings related to partitioning within the server. To enable partitioning, the setPartitioningEnabled(boolean) property should be enabled.
The following settings can be enabled:
Include Partition in Search Hashes (JavaDoc): If this feature is enabled, partition IDs will be factored into Search Hashes. When this flag is not set (as is the default), when a search requests a specific partition, an additional SQL WHERE predicate is added to the query to explicitly request the given partition ID. When this flag is set, this additional WHERE predicate is not necessary since the partition is factored into the hash value being searched on. Setting this flag avoids the need to manually adjust indexes against the HFJ_SPIDX tables. Note that this flag should not be used in environments where partitioning is being used for security purposes, since it is possible for a user to reverse engineer false hash collisions.
Cross-Partition Reference Mode: (JavaDoc): This setting controls whether resources in one partition should be allowed to create references to resources in other partitions.