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

Compound (grouped) attributes #28

Open
stemkovs opened this issue Sep 11, 2019 · 0 comments
Open

Compound (grouped) attributes #28

stemkovs opened this issue Sep 11, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@stemkovs
Copy link

In some use cases "matching" data is spread between several attributes.
For example, let's look at a use case with 3 indexes: people and cars
people index contains person_name, DOB, and address fields
cars index contains person_name, DOB, and car's license_plate fields
We would like to be able to find all people living at a particular address and all cars connected to these people. At the first glance, two resolvers should suffice:

  1. address
  2. person_name + DOB
    The first resolver will give us all people living at a particular address and the second resolver will pull out license plates for cars connected to these people.

The problem appears when a person (person-A) who lives at address-A, shares the same name with another person (person-B1) and shares the same DOB with yet another person (person-B2), where person-B1 and person-B2 happen to live at the same address-B. If we search for data starting from address-B, we are going to find person-B1 and person-B2 (correctly), but then by combining name of person-B1 and DOB or person-B2 we'll find person-A (incorrectly).

To avoid this issue there need to be a way for marking person_name and DOB attributes as "compound" or "grouped", so name and DOB of a person to look for would always come from the same record.

@davemoore- davemoore- added the enhancement New feature or request label May 7, 2024
@davemoore- davemoore- self-assigned this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants