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
BatchSize: -1 is causing it. It fetches unlimited records causing intermittent timeouts/resource issues.Set reasonable batch size like batchSize: 1000 -> pagination will handle the rest.