-
Notifications
You must be signed in to change notification settings - Fork 359
Class based Projections - projection class doesn't optimizes the query execution #1821
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
Labels
status: blocked
An issue that's blocked on an external project change
type: enhancement
A general enhancement
Comments
Related to #1803 |
schauder
added a commit
that referenced
this issue
Mar 13, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
schauder
added a commit
that referenced
this issue
Apr 2, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
schauder
added a commit
that referenced
this issue
Apr 16, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
schauder
added a commit
that referenced
this issue
Apr 25, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
schauder
added a commit
that referenced
this issue
May 26, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
mp911de
pushed a commit
that referenced
this issue
May 26, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
mp911de
pushed a commit
that referenced
this issue
May 26, 2025
Adds support for id generation by sequence as part of a composite id. Added a proper test for sorting by composite id element. Added a stand in test for projection by composite id element. The latter does not test the actual intended behaviour since projection don't work as intended yet. See #1821 Original pull request #1957 See #574
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
status: blocked
An issue that's blocked on an external project change
type: enhancement
A general enhancement
Uh oh!
There was an error while loading. Please reload this page.
i have an aggregate that internally has two 1 to M relationship
based on our business logic we need to inquery just the TOOL table returing a list of object.
Pratically we don't want to fetch the two relationship (calibrationInternalDefinitions and calibrationExternalDefinitions) we need to show a table wiht the miminal set of attribute of the TOOL table
as defined in the documentation we apply the projections expecting, that the query is limited to the field exposed by the consrtuctor of the Projection Class:
(official documentation) --> If the store optimizes the query execution by limiting the fields to be loaded, the fields to be loaded are determined from the parameter names of the constructor that is exposed.
then we implemented the minimal value object without the two relationships
and in our repository we add two methods:
analisyng the result of our Unit test where we call this two methods:
activating the trace of the query from the log we see that the query generate continue to do select in the relasionsip also if no define in the projection object,
Expectation
only the table TOOL table should be analyzed
if required I can create a test to show the behavior
The text was updated successfully, but these errors were encountered: