-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Performance of ValueSet $validate-code
Considerably improved performance for SNOMED CT by introducing a parent index and for normal code systems by introducing a graph cache. Also added a Terminology Service section to the Performance section in the documentation.
- Loading branch information
1 parent
6088092
commit e0f832c
Showing
43 changed files
with
914 additions
and
271 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
.github/scripts/test-terminology-service-graph-cache-metrics.sh
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,19 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
URL="http://localhost:8081/metrics" | ||
|
||
num-metrics() { | ||
NAME="$1" | ||
FILTER="$2" | ||
curl -s "$URL" | grep "$NAME" | grep -c "$FILTER" | ||
} | ||
|
||
# terminology service graph cache is available | ||
test "blaze_cache_estimated_size terminology-service-graph-cache" "$(num-metrics "blaze_cache_estimated_size" "name=\"terminology-service-graph-cache\"")" "1" | ||
|
||
# other caches are still available | ||
test "blaze_cache_estimated_size tx-cache" "$(num-metrics "blaze_cache_estimated_size" "name=\"tx-cache\"")" "1" | ||
test "blaze_cache_estimated_size resource-cache" "$(num-metrics "blaze_cache_estimated_size" "name=\"resource-cache\"")" "1" |
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.