mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SearchV2: Set correct batch limit when loading dashboards (#62314)
SearchV2: Set correct limit
This commit is contained in:
parent
591501ef3f
commit
c931b8031e
@ -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…
Reference in New Issue
Block a user