Skip to content

tracking-issue: Improve performance with GraphQL search API

Administrator requested to merge tracking-issue/graphql into master

Created by: tsenart

This commit changes cmd/tracking-issue to use the search API through GraphQL. This massively speeds up the runtime of this command since we're able to filter issues by milestone at the source.

sourcegraph:tracking-issue/graphql λ time go run ./internal/cmd/tracking-issue/main.go -milestone=3.13 -labels=team/core-services > /dev/null

0.97user 0.23system 0:02.08elapsed

sourcegraph:tracking-issue/graphql λ g co master
sourcegraph:master λ time go run ./internal/cmd/tracking-issue/main.go -milestone=3.13 -labels=team/core-services > /dev/null

1.07user 0.19system 0:11.00elapsed

Merge request reports

Loading