-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
None
The queries in the response-consumer appear to be driving the load on the database up.
The "select id, status, response_full from runs where org_id = ? and correlation_id = ?" runs for each response the response consumer processes. We use this query to retrieve the run id. https://github.com/RedHatInsights/playbook-dispatcher/blob/master/internal/response-consumer/handler.go#L84
However, we do not use the run id when we go to update the record in the runs table...so we have to do the more expensive search again.
Let's try passing the run-id to the update statement. We still need to build an index for these 2 queries.
- clones
-
RHCLOUD-31322 [playbook-dispatcher] playbook-dispatcher-connect-connect cannot connect to the database in stage
- Closed
- is cloned by
-
RHCLOUD-31331 [playbook-dispatcher] create an index that is used by the queries performed by the response-consumer
- Closed