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

RelationshipRepository: Remove fetching for related Instances #31

Open
joshavg opened this issue Sep 15, 2016 · 0 comments
Open

RelationshipRepository: Remove fetching for related Instances #31

joshavg opened this issue Sep 15, 2016 · 0 comments

Comments

@joshavg
Copy link
Owner

joshavg commented Sep 15, 2016

Each related Instance in a relationship is fetched by its uid in RelationshipRepository::getRelationships(Instance). This can lead to a massive amount of queries against the database.

The class Relationship should be refactored so that it does not contain two Instance members. It should rather contain to InstanceShim members that contain only the name and the uid of the Instances they represent.

@joshavg joshavg added this to the v0-2-0 milestone Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant