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

Support associations to reduce calls to server #6

Open
sthaha opened this issue Aug 29, 2016 · 2 comments
Open

Support associations to reduce calls to server #6

sthaha opened this issue Aug 29, 2016 · 2 comments

Comments

@sthaha
Copy link
Contributor

sthaha commented Aug 29, 2016

The following code

release = Release.find('fedora-22')
release.variants.map(&:release) 

Fetches release X times instead of 0. Perhaps the caching may stop this from happening but it may be worth fixing by adding support of association.

@ycheng-aa
Copy link
Contributor

@sthaha Does it mean we should port Spyke association implementation to PDC gem?

@sthaha
Copy link
Contributor Author

sthaha commented Sep 6, 2016

@ycheng-aa yes, most of the gem is based on spyke which already has associations. We could base our implementation on spyke.

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

2 participants