Closed toni-sissala closed 10 months ago
Actually only the base_url of the direct provenance is required. The new schema can look like:
{
"_provenance": [
{"base_url": "some.url" ...},
{"base_url": "another.url" ...}, ...,],
"_direct_base_url": "some.url"
}
OAI-PMH endpoint /metrics endpoint is counting metrics using the direct provenance of records. It is a slow query in mongodb since it needs to use $elemMatch query operator. Alter the schema so, that the direct provenace object is more easily accessible.
old schema:
new schema:
Schema alterations must be taken into account in mapping also.