Hi,
I need to run a query with apoc.case(..) and this seem to take more time to return results. Executing a particular case query, return results quickly. To show what is happening, I came up with following example -
EXPLAIN
CALL apoc.case([2 = 2, "Match (:User {id: 'cjpqf666w0000ea54iezc4xvs'}) "], '', {}) yield value
RETURN 0
This seem to be operating on more rows as shown by ProcedureCall, Projection and ProduceResults step.
And following query -
EXPLAIN
Match (:User {py_tiny_id: 'cjpqf666w0000ea54iezc4xvs'})
RETURN 0
just operate on 1 row and return quickly.
Is this a bug with apoc.case ?
-Karthik