I'd like to add something to the OTM 5 spec
I would like to request a relation between Sensor(s) and a Vehicle. That would be an additional field named sensors in the Vehicle definition that has an inline or referenced association to the Sensor object. It should be an array of associations.
Is your feature request related to a problem?
Yes, the problem is performance for gathering sensor data related to a Vehicle. Especially sensors that will never be moved and are inherently related to the vehicle. Examples: a temperature sensor, a speedometer, a odometer etc.
Currently these Sensors are "associated" through a AssociationCreatedEvent. This means we would have find all relations that have not yet been detached from a Vehicle of the type Sensor and then query the latest data that has been pushed. This has a tremendous impect on our performance.
Describe the solution you'd like
That would be an additional field named sensors in the Vehicle definition that has an inline or referenced association to the Sensor object. It should be an array of associations.
Describe alternatives you've considered
The alternative is already available, on our end we would have to extend the Vehicle object and map it as AssociationCreatedEvent too in order to both have performance and uphold the OTM5 model. This however is partially anti-pattern and would result in double code in order to gain performance.
Additional context
The topic was discussed here before
I'd like to add something to the OTM 5 spec
I would like to request a relation between Sensor(s) and a Vehicle. That would be an additional field named
sensorsin the Vehicle definition that has an inline or referenced association to the Sensor object. It should be an array of associations.Is your feature request related to a problem?
Yes, the problem is performance for gathering sensor data related to a Vehicle. Especially sensors that will never be moved and are inherently related to the vehicle. Examples: a temperature sensor, a speedometer, a odometer etc.
Currently these Sensors are "associated" through a
AssociationCreatedEvent. This means we would have find all relations that have not yet been detached from a Vehicle of the typeSensorand then query the latest data that has been pushed. This has a tremendous impect on our performance.Describe the solution you'd like
That would be an additional field named
sensorsin the Vehicle definition that has an inline or referenced association to the Sensor object. It should be an array of associations.Describe alternatives you've considered
The alternative is already available, on our end we would have to extend the Vehicle object and map it as
AssociationCreatedEventtoo in order to both have performance and uphold the OTM5 model. This however is partially anti-pattern and would result in double code in order to gain performance.Additional context
The topic was discussed here before