Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
8 stars 8 forks source link

Slow mongodb query in the retention module #1254

Closed jobulcke closed 2 months ago

jobulcke commented 3 months ago

Insertion of certain member properties in the retention module is very slow and expensive. The need of this query needs to be (re)evaluated, since some/all of the properties are now also stored in the ingest_ldesmember collection as well. If it appears to still be needed, then this query must be optimized

{"insert":"retention_member_properties","ordered":true,"$db":"vsds?retryWrites=false","documents":[{"_id":"?","collectionName":"?","views":["?"],"versionOf":"?","timestamp":{"$date":{"$numberLong":"?"}},"_class":"?"}]}
jobulcke commented 3 months ago

Some remarks about this issue:

Possible solutions:

Solutions that reflects a more SQL approach (which drops the retention_member_properties collection)

Quick and easy solutions that does not change anything about the data structure

jobulcke commented 2 months ago

Resolved in https://github.com/Informatievlaanderen/VSDS-LDESServer4J/pull/1263