Skip to content

Commit

Permalink
Increase the initial agent's actions fetch size to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus committed Feb 3, 2021
1 parent dbbcd69 commit d1fd092
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/dl/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
const (
FieldAgents = "agents"
FieldExpiration = "expiration"

maxAgentActionsFetchSize = 100
)

var (
Expand Down Expand Up @@ -44,6 +46,8 @@ func prepareFindAgentActions() *dsl.Tmpl {

filter.Terms(FieldAgents, tmpl.Bind(FieldAgents), nil)

// Select more actions per agent since the agents array is not loaded
root.Size(maxAgentActionsFetchSize)
root.Source().Excludes(FieldAgents)

tmpl.MustResolve(root)
Expand Down

0 comments on commit d1fd092

Please sign in to comment.