Changed consolidation_group_limit from 100k to 10k for faster queries. Reverted to GROUP BY approach for getting consolidation keys: - Uses MySQL index efficiently: (UnitName, ToolNameID, NodeNum, EventDate, EventTime) - GROUP BY with NodeNum ensures we don't lose any combinations - Faster GROUP BY queries than large ORDER BY queries - Smaller LIMIT = faster pagination This matches the original optimization suggestion and should be faster. 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
5.0 KiB
5.0 KiB