Improve manual coding performance#830
Open
jurei733 wants to merge 5 commits into
Open
Conversation
7a23d48 to
bc2b40c
Compare
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.
Summary
Refs #813
This PR improves the perceived and measured performance of the manual coding administration flows, especially for testergebnisse, Kodierübersicht, and manuelle Kodierung with auto-refresh enabled.
Changes include:
Root Cause
The slow feeling was not mainly caused by Angular rendering. The main sources were backend-side duplicate work and large cached response-analysis payloads being serialized and returned during cache hits. Rapid tab changes and auto-refresh could also start overlapping requests; old responses then risked updating current UI state. For stale paginator states, response-analysis could miss chunk caches and fall back toward heavier paths even though the summary was already available.
Validation
npx nx test backend --testFile=apps/backend/src/app/database/services/coding/coding-analysis.service.spec.ts --runInBand --skip-nx-cachenpx nx test backend --testFile=apps/backend/src/app/database/services/coding/coding-job.service.spec.ts --runInBand --skip-nx-cachenpx nx test backend --testFile=apps/backend/src/app/database/services/coding/coding-validation.service.spec.ts --runInBand --skip-nx-cachenpx nx test frontend --testFile=apps/frontend/src/app/shared/components/error-message-display/error-message-display.component.spec.ts --runInBand --skip-nx-cachenpx nx lint backend --skip-nx-cachenpx nx lint frontend --skip-nx-cachehttp://localhost:4201, workspace 54, slow-4g profile, manual login: 4/4 passingNotes
The issue is intentionally only referenced and not closed by this PR description. Local disk space was tight during the largest-scale repro work, so further tests beyond 5000 active test persons should be run on a machine with more free space.