As mentioned in Multiple requests to xdata server to run a regular query, it is also possible to get the FDQuery, which supports array DML's. I tried that and that works fine. However, there is also mentioned that the connection might not be thread-safe. If I get the Connection via TXDataOperationContext.Current.Connection, I receive a pointer to the connection already used by the OM for this call. So there should be no threading-issue. Or am I mistaken?
function TXDataBasis.CreateFDQuery: TFDQuery;
var
FDConnection: TFDConnection;
begin
//https://support.tmssoftware.com/t/multiple-requests-to-xdata-server-to-run-a-regular-query/13618
FDConnection := (TXDataOperationContext.Current.Connection as IDBConnectionAdapter).AdaptedConnection as TFDConnection;
result := TFDQuery.Create(nil); //LET OP! Wordt niet beheerd door TXDataBasis!!
result.Connection := FDConnection;
end;