Confused about the query time
- Langage dominant
- CodeQL
- Étoiles
- 10.1k
- Forks
- 2.1k
- Merge moyen
- 2 j 15 h
- PR mergées (30 j)
- 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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la requête indiquée dans l’issue et examinez comment CodeQL combine plusieurs prédicats et rend compte du temps d’exécution de la requête. Le payload ne mentionne aucun fichier du dépôt ni aucun test et ne fournit aucune modification concrète ni aucun critère d’achèvement ; l’explication demandée devrait donc d’abord être définie.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- devtools, security
- Type d'issue
- Documentation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100