cancel
Showing results for 
Search instead for 
Did you mean: 

Limit on CASE or apoc.case conditions?

mbandor
Graph Voyager

Is there a limit as to how many items can be included in the conditions for either CASE or apoc.case? I have a file with approximately 75 unique items I need to check for and act upon. If there is a limit, I may have to make multiple passes through the file as an alternative. So far I haven't found anything in the documentation indicating a limit, however I'm getting lexical errors when all the conditions are included in the apoc.case statement.

Thanks.

1 ACCEPTED SOLUTION

mbandor
Graph Voyager

I did some experimentation with the apoc.case() function and it appears the upper limit on the number of conditions seems to be about 50.

View solution in original post

1 REPLY 1

mbandor
Graph Voyager

I did some experimentation with the apoc.case() function and it appears the upper limit on the number of conditions seems to be about 50.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.