github / github/codeql

Confused about the query time

Open
#17,022 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Hi! I'm using a query like:
```
from FunctionCall target
where
predicate1(target)
and predicate2(target)
and predicate3(target)
and predicate4(target)
select target, target.getLocation().toString()
```
I found that if I query one predicate at a time, the time is very short, if I query 4 times separately, will the intersection of the results be the result of querying all the predicates at once?
If so, why is the sum of the time for the separate query so much shorter than the time for the one-time query?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.