Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize query: UID expansion #2772

Merged
merged 3 commits into from
Nov 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,14 @@ func getReversePredicates(ctx context.Context) ([]string, error) {
// ProcessGraph processes the SubGraph instance accumulating result for the query
// from different instances. Note: taskQuery is nil for root node.
func ProcessGraph(ctx context.Context, sg, parent *SubGraph, rch chan error) {
ctx, span := otrace.StartSpan(ctx, "query.ProcessGraph")
var suffix string
if len(sg.Params.Alias) > 0 {
suffix += "." + sg.Params.Alias
}
if len(sg.Attr) > 0 {
suffix += "." + sg.Attr
}
ctx, span := otrace.StartSpan(ctx, "query.ProcessGraph"+suffix)
defer span.End()

if sg.Attr == "uid" {
Expand Down
Loading