Performance: /api/content_node/checklist_nodes#7114
Merged
pmattmann merged 2 commits intoecamp:develfrom Apr 11, 2025
Merged
Conversation
| #[Groups(['read'])] | ||
| #[ORM\ManyToOne(targetEntity: ColumnLayout::class, inversedBy: 'rootDescendants')] | ||
| #[ORM\JoinColumn(nullable: true, onDelete: 'CASCADE')] // TODO make not null in the DB using a migration, and get fixtures to run | ||
| #[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')] |
Member
There was a problem hiding this comment.
Nice, so this finally works now
Member
Author
There was a problem hiding this comment.
yes - and it improves performance :)
| 'violations' => [ | ||
| [ | ||
| 'propertyPath' => 'parent', | ||
| 'propertyPath' => 'root', |
Member
There was a problem hiding this comment.
The test name still says the parent may not be missing, not the root. Should this be a new test instead? Or do we just need to adjust the test's name?
Member
Author
There was a problem hiding this comment.
Unfortunately no.
parent is the mandatory field. But without parent root is not determined.
Unfortunately root is checked first.
It is correct that a ValidationError occurs. However, the message is unfortunate.
Unfortunately, I have not found a better solution.
BacLuc
approved these changes
Mar 29, 2025
177a351 to
be75ad0
Compare
usu
reviewed
Apr 11, 2025
simfeld
approved these changes
Apr 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Index
ContentNode->strategyimproves joins with strategy-filter
ContentNode->rootnot nullableleft joinbecomesinner joinAuswirkung
auf /api/content_node/checklist_nodes?camp=/camps/camp_id
Old: (cost=348.72..348.73 rows=1 width=1453)
New: (cost=186.07..186.07 rows=1 width=1453)
Old:
Explain query
New:
Explain query