You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete expunge (and possibly other batch 2 jobs) cannot handle more than 2100 resources with identical timestamps. Specifically, the batch job will incorrectly submit a chunk that vastly exceeds the limit of number of elements in an IN statement in mssql.
To Reproduce
Steps to reproduce the behaviour:
Set up an MSSQL database
Create more than 2100 Patient resources
Run manual SQL to set their update timestamps to the same value: update HFJ_RESOURCE set RES_UPDATED = '2023-06-06 10:35:28' where res_type = 'Patient';
Expected behaviour
The delete should complete without error. All Patient records are removed.
Actual behaviour
In the log output, you will find the following error, and the delete will not succeed:
The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
Additional context
Note that the error cannot be reproduced with an H2 database, presumably because H2 does not impose the same limitation on the number of elements allowed in an IN statement.
The text was updated successfully, but these errors were encountered:
Delete expunge (and possibly other batch 2 jobs) cannot handle more than 2100 resources with identical timestamps. Specifically, the batch job will incorrectly submit a chunk that vastly exceeds the limit of number of elements in an IN statement in mssql.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The delete should complete without error. All Patient records are removed.
Actual behaviour
In the log output, you will find the following error, and the delete will not succeed:
Additional context
Note that the error cannot be reproduced with an H2 database, presumably because H2 does not impose the same limitation on the number of elements allowed in an IN statement.
The text was updated successfully, but these errors were encountered: