Skip to content

Fix for performance issues of regrading data update on huge data sets - #150

Merged
ndunand merged 1 commit into
ndunand:masterfrom
danowar2k:#149-regrading-update-performance
Jun 3, 2026
Merged

Fix for performance issues of regrading data update on huge data sets#150
ndunand merged 1 commit into
ndunand:masterfrom
danowar2k:#149-regrading-update-performance

Conversation

@danowar2k

Copy link
Copy Markdown
Contributor
  • Changed question batch size to 25000 (this should be okay when using 2GB max memory and not lead to out of memory problems)
  • Force garbage collection between question batches
  • Use between instead of IN() in stepdata queries
  • Lower stepdata update record chunk size from 10000 to 100 (the many CASE WHEN statements probably lead to high runtimes when running the update)

- Changed question batch size to 25000 (this should be okay when using 2GB max memory and not lead to out of memory problems)
- Force garbage collection between question batches
- Use between instead of IN() in stepdata queries
- Lower stepdata update record chunk size from 10000 to 100 (the many CASE WHEN statements probably lead to high runtimes when running the update)
@danowar2k

danowar2k commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Fixes #149.

@danowar2k

Copy link
Copy Markdown
Contributor Author

Fixes #149

@ndunand
ndunand merged commit 167018e into ndunand:master Jun 3, 2026
4 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