Skip to content

db: Reduce pressure from status messages

Administrator requested to merge ef/status-message-flail into main

Created by: efritz

The count query in this graphql request is currently the dominating query in Cloud according to query insights. Instead of doing a full aggregate of the number of repos (which can be slow for site-admins), we should check if there exists any repos matching the same conditions.

This should preserve the current behavior, but tagged @sourcegraph/repo-management to confirm.

Merge request reports

Loading