I am using a!queryEntity() to query a DB table where I am only using 2 filters to fetch the results. I am also using pagination for it. Also, this issue is not occurring for all the records. It just occurs intermittently and it also resolves the moment we try to re query using same data. does anyone knows what could be the reason for it?
This is the complete error: An error occurred while evaluating expression: XXXXX (Expression evaluation error in rule XXXX at function a!queryEntity [line 4]: An error occurred while retrieving the data. Details: Unexpected error executing query
I doubt if the batch i set might be causing it? I have set the batch size to -1? Does it have any impact in query performance?
Discussion posts and replies are publicly visible
-1 as batch size means to fetch ALL rows. Depending on the data volume in your table this leads to a timeout or memory issues. Just do not do that.