Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inferred relation ID should have a constant ID across multiple queries #7032

Open
maydanw opened this issue Apr 8, 2024 · 1 comment
Open

Comments

@maydanw
Copy link

maydanw commented Apr 8, 2024

Problem to Solve

When making multiple queries with inferred relations it is hard to align, combine, and properly connect the results sets.

Current Workaround

It is possible to create an ID on the client side through hashing it's surrounding

Proposed Solution

Make the inferred relation ID a hash of the IDs it connects (or just the first two will suffice for 95% of the cases) and therefore if it connects the same entities (in the final conclusion) it will have the same ID

Additional Information

image
An example of the same query ran twice. The ID is the key in the local repo so the duplicated relations is where the ID had changed.

@maydanw
Copy link
Author

maydanw commented Apr 9, 2024

On a different/similar note, I also encountered relationships without any id (hadn't investigated why yet)
printscreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant