Skip to content

OTM5 - Vehicle and Sensor (direct) association #2

Description

@thomaskolmans

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OTM 5.1This ticket is included in OTM 5.1enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions