Skip to content

Optional dependents and entity splitting #29079

Closed

Description

@smitpatel

In entity splitting and owned dependents with table sharing,
The main fragment of dependent has to be table sharing with any fragment of principal.
Additional fragment of dependent can be table sharing with other fragments of principal.
So combined this it creates question for optional dependents where
we check for all non-principal shared non-pk properties to see if they contain any value to figure out if dependent exists, we use this check in property access too.
How do we figure out across all tables if dependent is sharing property with principal across all of its fragments?
If we somehow arrive at the complex condition for this question, it could mean that we don't remove additional split tables even though value is not used in final result because we would use them in property access to figure out if used value should be null or column value which reduces the value of entity splitting itself if we have to join all the table all the time.

Activity

  1. ajcvickers commented on Sep 21, 2022

    @ajcvickers
    Contributor

    Note from triage: waiting for @AndriySvyryd

  2. self-assigned this
    on Oct 6, 2022
  3. added a commit that references this issue on Oct 6, 2022
    dcf0a04
  4. added this to the 7.0.0 milestone on Oct 6, 2022
  5. ajcvickers commented on Oct 6, 2022

    @ajcvickers
    Contributor

    Note from triage: we should block this in model validation. @AndriySvyryd to prepare PR for Tactics.

  6. added a commit that references this issue on Oct 6, 2022
    96ce1d9
  7. removed their assignment
    on Oct 7, 2022
  8. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions