SearchV2: Set correct batch limit when loading dashboards (#62314)

SearchV2: Set correct limit
pull/61938/head^2
Karl Persson 2 years ago committed by GitHub
parent 591501ef3f
commit c931b8031e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/services/searchV2/index.go

@ -901,7 +901,8 @@ func (l sqlDashboardLoader) LoadDashboards(ctx context.Context, orgID int64, das
limit := 1
if dashboardUID == "" {
dashboards = make([]dashboard, 0, l.settings.DashboardLoadingBatchSize)
limit = l.settings.DashboardLoadingBatchSize
dashboards = make([]dashboard, 0, limit)
}
loadDatasourceCtx, loadDatasourceSpan := l.tracer.Start(ctx, "sqlDashboardLoader LoadDatasourceLookup")

Loading…
Cancel
Save