IHTSDO / snow-owl

Snow Owl Terminology Server. This version is no longer maintained. Please use the upstream version or the alternate Snowstorm Terminology Server.
Apache License 2.0
11 stars 1 forks source link

MRCM type ahead search performance #2

Closed cmark closed 8 years ago

cmark commented 8 years ago

This PR improves the performance of the MRCM type ahead search widgets. It addresses the following issues:

  1. using filterByExtendedLocales(...) is expensive, it is safe to use only setLocales(...) in this context. Expansion will use the locales, the results of the filterByTerm(...) are not affected by the change.
  2. Inactivation property expansion is another expensive join operation, which is not really required when filtering by term in a concept search request, therefore I've added the expansion property inactivationProperties to the SnomedDescriptionConverter so the client has to explicitly require them.

If any client of the REST API is using either the inactivationIndicator or associationTargets, then please make sure you request them by using expand=inactivationProperties query parameter.