cessda / cessda.cdc.aggregator.shared-library

Python library containing shared code for the CESSDA CDC Aggregator
European Union Public License 1.2
0 stars 0 forks source link

39 alter schema to get easier access to direct provenance #40

Closed toni-sissala closed 11 months ago

toni-sissala commented 11 months ago

Change the Study record schema so that queries for direct base url do not need to use the $elemMatch operator, which has a negative impact on performance. The altered schema has a new key "_direct_base_url":

{
  "_provenance": [
    {"base_url": "some.url" ...}, 
    {"base_url": "another.url" ...}, ...,],
  "_direct_base_url": "some.url"
}

This component can be released when merged. I will add a date to changelog entry when merging.