BackgroundTasks 42356: Extend background task DB indexes - #11521
Open
matheuszych wants to merge 1 commit into
Open
matheuszych wants to merge 1 commit into
matheuszych wants to merge 1 commit into
Conversation
Contributor
|
@matheuszych I suggest adding a new database update file/class for hotfixes in the ILIAS versions 10 and 11, and a new regular database update step file/class for ILIAS 12/trunk. |
matheuszych
force-pushed
the
bg/42356
branch
2 times, most recently
from
May 4, 2026 11:02
be032e2 to
306bd37
Compare
See: https://mantis.ilias.de/view.php?id=42356 The standalone `ilBackgroundTasksDB80` class only added a single bucket index. It is removed in favour of `ilBackgroundTasksDBHotfixes10`, whose first step adds the composite `(user_id, state)` bucket index plus `bucket_id` indexes on `il_bt_task` and `il_bt_value_to_task`. The second step cleans orphaned rows, fixes dangling root/current task pointers, and creates matching InnoDB foreign keys (cascade or set-null) across the background-task tables where the engine allows it. `ilBackgroundTasksSetupAgent` delegates install objectives to the update collection (config storage plus these steps) and points metrics collection at the hotfix class.
matheuszych
force-pushed
the
bg/42356
branch
from
September 14, 2026 14:08
306bd37 to
a9a12e8
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.
See: https://mantis.ilias.de/view.php?id=42356
The ILIAS 8.0 background-task migration only indexed
il_bt_bucketbyuser_id. Typical lookups filter by bucket state and join tasks or stored values viabucket_id, which stayed unindexed.step_1now replaces that index with(user_id, state)onil_bt_bucketand addsbucket_idindexes onil_bt_taskandil_bt_value_to_task./cc @thojou