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

The queries on expanded entities/collections are triggered despite the core entity result being empty #406

Open
dbhandari555 opened this issue Nov 11, 2024 · 1 comment

Comments

@dbhandari555
Copy link
Contributor

Lets elaborate with a simple example using entities defined in the library : Organizations?$top=0&$expand=Roles

This will deterministically return empty results when query.execute() is performed on the core entity. Currently, there is no check in JPANavigationRequestProcessor class to verify if the core entity result set is empty before proceeding with triggering the subsequent queries on the associated collections of the core entity or the expanded entity. This results in unnecessary computation on the server side since the overall result is always empty.

@dbhandari555 dbhandari555 changed the title The queries on expanded entities/collections are triggered despite the core entity results being empty The queries on expanded entities/collections are triggered despite the core entity result being empty Nov 11, 2024
@dbhandari555
Copy link
Contributor Author

dbhandari555 commented Nov 12, 2024

@wog48 Solution for the same proposed here: #408

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