-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
BUGFIX 4508 mark dependands of live outdated after direct change #5274
BUGFIX 4508 mark dependands of live outdated after direct change #5274
Conversation
Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphProjection.php
Show resolved
Hide resolved
Neos.ContentGraph.DoctrineDbalAdapter/src/ContentRepositoryReadModelAdapter.php
Outdated
Show resolved
Hide resolved
{$this->tableNames->workspace()} ws | ||
JOIN {$this->tableNames->contentStream()} cs ON cs.id = ws.currentcontentstreamid | ||
LEFT JOIN {$this->tableNames->contentStream()} scs ON cs.sourceContentStreamId = scs.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the performance trait is this: we still have the status in the workspace, but we have to calculate it slightly more expensive with these two joins.
I cannot say if this is better performance than having on the write side a similar complex update logic for each event. But as findWorkspaceByName
(and implicitly getContentGraph
) trigger this query and are also part of the write side for constraint checks we have to carefully evaluate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point the content graph projections needs to know about changes between streams/workspaces (e.g. to count/diff pending changes etc). Then we can revisit this topic and make it faster if needed
....ContentRepository.BehavioralTests/Tests/Behavior/Features/Workspaces/WorkspaceState.feature
Show resolved
Hide resolved
c374314
to
db7861f
Compare
…known source version
... and refactor status calculation logic. By leveraging `isSatisfiedBy` i found out the `>` comparison was not quite correct. We should use `===`.
f928255
to
26e2de7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great already, just a comment regarding "expected version"
....ContentRepository.BehavioralTests/Tests/Behavior/Features/Workspaces/WorkspaceState.feature
Show resolved
Hide resolved
Neos.ContentGraph.DoctrineDbalAdapter/src/ContentRepositoryReadModelAdapter.php
Outdated
Show resolved
Hide resolved
Neos.ContentGraph.DoctrineDbalAdapter/src/ContentRepositoryReadModelAdapter.php
Outdated
Show resolved
Hide resolved
Neos.ContentGraph.DoctrineDbalAdapter/src/ContentRepositoryReadModelAdapter.php
Outdated
Show resolved
Hide resolved
…dands-of-live-outdated-after-direct-change
…oid fetching full workspace model with the extra joins in the workspace model it is just easier to just select the current content stream id directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice
FIXES: #4508
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions