v.25.5Performance Improvement

Fix performance of the distributed

Fix performance of the distributed INSERT SELECT with parallel replicas. #79441 (Azat Khuzhin).