Closed m-karo closed 2 months ago
Options:
In case 1, we can use document "created time" as filter to get latest version
Decision needed: To we keep all PEVF versions or not?
In option 1. we keep 2 versions of D-1 and 32 versions of ID In option 2. we keep only one copy od D-1 and ID
2024-03-14 Decision: Keep only latest version for now, change if real need arises.
TODO: Remove "revisionNumber" from the _id
Options:
Options storage amount (per month):
One file is estimated to take 10MB
We might need to separate indexes to weeks as we are storing too much data per one index
2024-03-25 Decision: Keep only latest version for now, change if real need arises. + Add to A03 parsing that for each MTU there would be a document.
For version 3. change is needed here - https://github.com/Baltic-RCC/EMF/blob/d90f8b5a882d3bae3a6aab6014805933e7ae0fb3/emf/common/converters/iec_schedule_to_ndjson.py#L124
IEC conversion to MTU implemented
Need to figure out how properly select document id in order to be able to overwrite document by each revision number.
Now id is generated from mRID, revisionNumber, TimeSeries.mRID and position. This is not good as revision number is included makes it different for each revision.