Skip to content

Confused about the query time #17022

Open
@icy17

Description

@icy17

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions