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

Load partial associations #46

Open
jgaskins opened this issue Apr 11, 2014 · 0 comments
Open

Load partial associations #46

jgaskins opened this issue Apr 11, 2014 · 0 comments

Comments

@jgaskins
Copy link
Owner

If a user has a mailbox which has thousands of messages in it, loading all of them is a huge waste when they are likely to only view the latest 2 or 3 messages. We need some kind of syntax that limits which associated objects we want. The only idea I've got:

# Load messages 20 through 40 (exclusive)
mapper.load_association! mailbox, :messages, 20...40
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