This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a many to many relationship between Sheet and Customer objects. These relations are joined using a CustomerSheet object. I am using named aggregates named "CustomerWithSheet" and "SheetWithCustomer" (set in the appropriate "Backreference Aggregates" and "Collection Aggregates" properties, good work guys - it is so intuitive I got it in an instant without docs). Finally I am able to retrieve all rows in a single query which is perfect. When I select:
the query to the database (SQL Server 2012) seems to be all right:
But when I select (without any filter):
the query on the database is:
The second query seems to be excessive - it selects ALL customers, even those without any sheets. It is the problem as Customers without sheets might be a majority in the database, why select them ? This looks like a bug to me, can you please confirm this ? Thanks. |
|
|
Thanks for reporting this - yes this doesn't look right given they can be filtered on the FK. Ill check into why this is occurring (as there may be some reason Im not aware of) and let you know what the story is here.
|
|