Actions
Patch #43619
closedOptimize Issue#recalculate_attributes_for by merging date queries
Patch #43619:
Optimize Issue#recalculate_attributes_for by merging date queries
Description
The attached patch slightly improves performance in Issue#recalculate_attributes_for.
When the method recalculates start_date and due_date, two separate queries (MIN(start_date) and MAX(due_date)) are currently executed. This change merges them into a single query, reducing one database round-trip.
Files
Actions