Skip to content

Commit

Permalink
Record slot size: select distinct (#1428)
Browse files Browse the repository at this point in the history
Turns out we create a flows record per source/destination table pair
  • Loading branch information
serprex authored Mar 4, 2024
1 parent 2271a1b commit 1432b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ func (a *FlowableActivity) SendWALHeartbeat(ctx context.Context) error {
}

func (a *FlowableActivity) RecordSlotSizes(ctx context.Context) error {
rows, err := a.CatalogPool.Query(ctx, "SELECT flows.name, flows.config_proto FROM flows WHERE query_string IS NULL")
rows, err := a.CatalogPool.Query(ctx, "SELECT DISTINCT ON (name) name, config_proto FROM flows WHERE query_string IS NULL")
if err != nil {
return err
}
Expand Down

0 comments on commit 1432b4d

Please sign in to comment.