Actions
Bug #11358
closedtasks table needs index for type & value
Difficulty:
easy
Triaged:
Pull request:
Description
calling ForemanTasks::Task::DynflowTask.for_action queries the tasks table by label and type which is very very slow on systems with a lot of tasks. One such user has ~140,000 tasks and when hitting an api that uses this query and joins with the locks table the query was very slow.
In this customer's case without this index the api was taking ~1.3 minutes, with this index it dropped to 10 seconds.
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1253802
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-tasks/pull/129 added
- Pull request deleted (
)
Updated by Justin Sherrill over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 490c34fbd50585fd50a4bea777215353f1b260c5.
Actions