Similar to Kusama, our approach on Polkadot involves adjusting the setOnDemandMaxQueueSize
to 500. This change stems from an observation on Rococo, where a parachain's batch call for about 5,000 orders in a block, combined with a surplus of on-demand cores, resulted in notably slow block import times, as detailed in the reported issue. As a temporary fix, we're limiting the total number of orders by modifying the configuration via setOnDemandMaxQueueSize
to a smaller value, and for the initial launch, 500 is deemed a secure limit. Once a more permanent solution is implemented, the maximum number of orders can be reconsidered.