SearchV2: Set correct batch limit when loading dashboards (#62314)
SearchV2: Set correct limit
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user