-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Database partition mode Part 2 (#6409)
* First pass at segmenting out changes * Test fixes * Test fixes * Test fix * Work on tests * Fix test * Test fix * Test fix * Fixes * Test fixes * Test fix * License headers * Test fix * Add changelog * Address review comments * Review comments * Fixes * Work on tests * Address review comments * Fix * Add tests * Cleanup * Rename JpaPidValueTuples * Add changelog * Spotless * Resolve compile issues * Fix signature issue * Test fix * Add header * Spotless * Test cleanup * Work on merge * Work on tests
- Loading branch information
1 parent
c9c8371
commit 744a0d7
Showing
98 changed files
with
3,820 additions
and
1,011 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ources/ca/uhn/hapi/fhir/changelog/7_8_0/6409-fix-timezone-issue-for-history-at-query.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
type: fix | ||
issue: 6409 | ||
title: "When performing a `_history` query using the `_at` parameter, the time value | ||
is now converted to a zoned-date before being passed to the database. This should | ||
avoid conflicts around date changes on some databases. | ||
" |
7 changes: 7 additions & 0 deletions
7
.../main/resources/ca/uhn/hapi/fhir/changelog/7_8_0/6409-optimize-versioned-tag-loading.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
type: perf | ||
issue: 6409 | ||
title: "When searching in versioned tag mode, the JPA server now avoids a redundant | ||
lookup of the un-versioned tags, avoiding an extra unnecessary database query | ||
in some cases. | ||
" |
11 changes: 11 additions & 0 deletions
11
...src/main/resources/ca/uhn/hapi/fhir/changelog/7_8_0/6409-stop-using-provenance-table.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
type: perf | ||
issue: 6409 | ||
title: "The JPA server will no longer use the HFJ_RES_VER_PROV table to store and index values from | ||
the `Resource.meta.source` element. Beginning in HAPI FHIR 6.8.0 (and Smile CDR 2023.08.R01), a | ||
new pair of columns have been used to store data for this element, so this change only affects | ||
data which was stored in HAPI FHIR prior to version 6.8.0 (released August 2023). If you have | ||
FHIR resources which were stored in a JPA server prior to this version, and you use the | ||
Resource.meta.source element and/or the `_source` search parameter, you should perform a complete | ||
reindex of your server to ensure that data is not lost. See the upgrade notes for more information. | ||
" |
20 changes: 18 additions & 2 deletions
20
hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_8_0/upgrade.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# Upgrade Notes | ||
|
||
The JPA server stores values for the field `Resource.meta.source` in dedicated columns in its database so that they can be indexes and searched for as needed, using the `_source` Search Parameter. | ||
|
||
Prior to HAPI FHIR 6.8.0 (and Smile CDR 2023.08.R01), these values were stored in a dedicated table called `HFJ_RES_VER_PROV`. Beginning in HAPI FHIR 6.8.0 (Smile CDR 2023.08.R01), two new columns were added to the `HFJ_RES_VER` | ||
table which store the same data and make it available for searches. | ||
|
||
As of HAPI FHIR 8.0.0, the legacy table is no longer searched by default. If you do not have Resource.meta.source data stored in HAPI FHIR that was last created/updated prior to version 6.8.0, this change will not affect you and no action needs to be taken. | ||
|
||
If you do have such data, you should follow the following steps: | ||
|
||
* Enable the JpaStorageSettings setting `setAccessMetaSourceInformationFromProvenanceTable(true)` to configure the server to continue using the legacy table. | ||
|
||
* Perform a server resource reindex by invoking the [$reindex Operation (server)](https://smilecdr.com/docs/fhir_repository/search_parameter_reindexing.html#reindex-server) with the `optimizeStorage` parameter set to `ALL_VERSIONS`. | ||
|
||
* When this reindex operation has successfully completed, the setting above can be disabled. Disabling this setting avoids an extra database round-trip when loading data, so this change will have a positive performance impact on your server. | ||
|
||
# Fulltext Search with _lastUpdated Filter | ||
|
||
Fulltext searches have been updated to support `_lastUpdated` search parameter. A reindexing of Search Parameters | ||
is required to migrate old data to support the `_lastUpdated` search parameter. | ||
Fulltext searches have been updated to support `_lastUpdated` search parameter. If you are using Advanced Hibernate Search indexing and wish to use the `_lastUpdated` search parameetr with this feature, a full reindex of your repository is required. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.