@simonbasle this issue appears to be effecting multiple people can you take a look at this more detailed post I have made. There may be more posted there to help you properly debug. N1QL Query times out using parametrized values in IN clause - #2 by geraldss