We need to find for a given event the corresponding predecessor.
Our idea is, to get the offset from the current event and query events, that are older, regarding the offset. And then take the latest of those, but we don’t want to do the selection of the latest in our code.
Is there an efficient way to query an event that matches a tag with an id that is the predecessor of another event?
If there is a solution without AQL, this would be finde es well
So just to make more clear what I have:
FROM FEATURES(to(123)) & Machine:someId & SomeOtherTag
And from that, I only want the latest event, something like TOP in SQL would do.