v.24.12Performance Improvement

Speed up single partition key insertions in merge tree

Speed up insertions into merge tree in the case of a single value of partition key inside the inserted batch. #72348 (alesapin).