Skip to content

Commit

Permalink
Do not attempt to use DeleteMultiple except on elastic tables
Browse files Browse the repository at this point in the history
Fixes #469
  • Loading branch information
MarkMpn committed May 12, 2024
1 parent 197d8b1 commit 0a2b862
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MarkMpn.Sql4Cds.Engine/ExecutionPlan/DeleteNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ protected override ExecuteMultipleResponse ExecuteMultiple(DataSource dataSource
if (!req.Requests.All(r => r is DeleteRequest))
return base.ExecuteMultiple(dataSource, org, meta, req);

if (meta.DataProviderId == DataProviders.ElasticDataProvider || dataSource.MessageCache.IsMessageAvailable(meta.LogicalName, "DeleteMultiple"))
if (meta.DataProviderId == DataProviders.ElasticDataProvider
// DeleteMultiple is only supported on elastic tables, even if other tables do define the message
/* || dataSource.MessageCache.IsMessageAvailable(meta.LogicalName, "DeleteMultiple")*/)
{
// Elastic tables can use DeleteMultiple for better performance than ExecuteMultiple
var entities = new EntityReferenceCollection();
Expand Down

0 comments on commit 0a2b862

Please sign in to comment.