Skip to content
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

Split the problem text content from the problem in the database. #2241

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

nickygerritsen
Copy link
Member

This is to prepare for the next Doctrine release, which doesn't allow partial queries anymore. This is also to make it consistent with other blobs in the database like submission files and problem attachments.

This is preparation for #2069 where I will do a similar thing.

Besides this there is one more partial query, which I will remove in a separate PR.

I know changing database stuff just for the ORM is not something to do lightly, but I don't think we have any better way. And this actually improves queries in the places where we used partial queries before IMHO.

@nickygerritsen nickygerritsen force-pushed the split-problem-text-from-problem branch from 1d05c31 to 748eabe Compare November 24, 2023 14:09
webapp/src/Entity/Problem.php Outdated Show resolved Hide resolved
Copy link
Member

@vmcj vmcj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not the target audience for this one

@nickygerritsen nickygerritsen force-pushed the split-problem-text-from-problem branch from 748eabe to 770da79 Compare November 24, 2023 14:47
nickygerritsen added a commit to nickygerritsen/domjudge that referenced this pull request Nov 24, 2023
Similar to DOMjudge#2241 this gets rid of the only other partial query.
nickygerritsen added a commit to nickygerritsen/domjudge that referenced this pull request Nov 24, 2023
Similar to DOMjudge#2241 this gets rid of the only other partial query.
nickygerritsen added a commit to nickygerritsen/domjudge that referenced this pull request Nov 24, 2023
Similar to DOMjudge#2241 this gets rid of the only other partial query.
nickygerritsen added a commit to nickygerritsen/domjudge that referenced this pull request Nov 24, 2023
Similar to DOMjudge#2241 this gets rid of the only other partial query.

Submission files should be pretty small and only the jury submission page displays this information anyway, so it should be safe to load the whole model.
github-merge-queue bot pushed a commit that referenced this pull request Nov 25, 2023
Similar to #2241 this gets rid of the only other partial query.

Submission files should be pretty small and only the jury submission page displays this information anyway, so it should be safe to load the whole model.
This is to prepare for the next Doctrine release, which doesn't allow partial queries anymore.
This is also to make it consistent with other blobs in the database like submission files and problem attachments.

This is preparation for DOMjudge#2069.
@nickygerritsen nickygerritsen force-pushed the split-problem-text-from-problem branch from 770da79 to 2ec6576 Compare January 3, 2024 09:02
@nickygerritsen
Copy link
Member Author

I propose to merge this after the current contest 'season', unless others think we should do it before so we can test it?

vmcj pushed a commit to vmcj/domjudge that referenced this pull request Jan 12, 2024
Similar to DOMjudge#2241 this gets rid of the only other partial query.

Submission files should be pretty small and only the jury submission page displays this information anyway, so it should be safe to load the whole model.
@vmcj vmcj added this pull request to the merge queue Jan 12, 2024
Merged via the queue into DOMjudge:main with commit 541fe1d Jan 12, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants