Confused about the query time
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
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?
Beitragsleitfaden
Rechercherichtung
Beginne mit der im Issue gezeigten Abfrage und untersuche, wie CodeQL mehrere Prädikate kombiniert und die Abfragezeit meldet. Der Payload nennt keine Repository-Dateien oder Tests und enthält keine konkrete Änderung oder Abschlusskriterien, daher müsste die angeforderte Erklärung zunächst definiert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- devtools, security
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100