Skip to content

Add limit 1000 in the select query

Ravi Kumar requested to merge add-limit-tasks-scope-get-api into master

What does this MR do and why?

I checked on staging that the Search::Zoekt::Task.pending.count is almost 500k. And it is not decreasing. I suspect that due to so many records, the SELECT query gets timed out and no tasks get processed. I think we can safely add the limit in the SELECT query to 1000

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports

Loading