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

Consistent final data in final computed scores report #1231

Open
jpschewe opened this issue Jan 28, 2025 · 1 comment
Open

Consistent final data in final computed scores report #1231

jpschewe opened this issue Jan 28, 2025 · 1 comment
Assignees
Milestone

Comments

@jpschewe
Copy link
Owner

There have been a few cases where scores are being entered while the final computed scores report is run. Due to how the database needs to store data and then read parts back this can cause a report to be inconsistent with itself, showing a team with a high performance scores, but still a low rank.

@jpschewe jpschewe added this to the 19.2 milestone Jan 28, 2025
@jpschewe jpschewe self-assigned this Jan 28, 2025
@jpschewe
Copy link
Owner Author

I created a web servlet that displays the max performance score for all teams, sleeps for 10 seconds and then repeats for 5 times.
While that page as generating I inserted a new high score for a team.

With the default locking the changed score was seen.

When creating a transaction the changed score was still seen.

However when setting the transaction isolation level to repeatable read, then the changed score was not seen.

This suggests that I could have the final computed scores report be something like this:

  1. get connection
  2. set transaction isolation level to repeatable read
  3. turn off auto commit
  4. execute summarize scores using this connection
  5. generate the report with this transaction
  6. commit the transaction
  7. render the PDF

However I don't know what this would to performance.

Executing the score summarization automatically for any report might be a good idea though.

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

No branches or pull requests

1 participant