Browse Source

feat(statistical-detectors): Add option to control query batch size (#54727)

This option will control the number of projects we batch into a single
query. Should max out at 100 as 100 projects x 100 results per project
maxes out the 10,000 rows allowed in the results.
Tony Xiao 1 year ago
parent
commit
c444fc68d2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/sentry/options/defaults.py

+ 6 - 0
src/sentry/options/defaults.py

@@ -1455,6 +1455,12 @@ register(
     default=[],
     flags=FLAG_PRIORITIZE_DISK | FLAG_AUTOMATOR_MODIFIABLE,
 )
+register(
+    "statistical_detectors.query.batch_size",
+    type=Int,
+    default=100,
+    flags=FLAG_PRIORITIZE_DISK | FLAG_AUTOMATOR_MODIFIABLE,
+)
 
 register(
     "options_automator_slack_webhook_enabled",