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

Room results are incorrect case of using foreach instead of Room relationships #14

Open
axrkozlov opened this issue Jun 7, 2019 · 0 comments

Comments

@axrkozlov
Copy link

axrkozlov commented Jun 7, 2019

In Room there are approaches that could be used to define the relations between the entities:

  1. @Embedded (nested objects)
  2. @foreignkey
  3. @relation
    In test should have been using relationship instead of two sequential request and foreach to bind a library to a book. My simple read results with foreach are about 400ms comparing to using @Embedded relationship they are 30ms.
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