Server‑side duplicate filtering vs client‑side conditional rendering for large Thymeleaf alert lists
When rendering a notification list that may contain thousands of alerts, the team must decide whether to remove duplicate alert IDs on the server using #lists.contains before the template runs, or to keep the full list in the model and rely on th:if to suppress duplicates in the view. The server‑side filter adds a collection traversal that grows with list si