Smart Date Recur - Fullcalendar View

Created on 10 April 2024, 9 months ago
Updated 27 June 2024, 6 months ago

Problem/Motivation

Having multiple infinitely recurring events slows fullcalendar views query to point of failure

Steps to reproduce

Create multiple infinitely recurring events and display them in a fullcalendar view

I can't find any information on how to resolve this issue. I've had to limit events to about 10 repeats each to prevent the view from breaking.

💬 Support request
Status

Closed: duplicate

Version

4.0

Component

Smart Date Recur

Created by

🇨🇦Canada Noregrebt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Noregrebt
  • Status changed to Closed: duplicate 8 months ago
  • 🇨🇦Canada mandclu

    I hope that you actually mean "recurring indefinitely" instead of "infinitely recurring" :P

    This has been previously discussed in #3301162: Recurring dates cause slow calendar load and 💬 SmartDate Field very slow in Views (Full Calendar) Active .

  • 🇨🇦Canada Noregrebt

    Wanted to add an update to this in case anyone is encountering this problem.

    After some experimentation, I was able to determine the performance hit was actually coming from date formatting. Steps to fix:

    1. Switch view to "Calendar View" rather than "fullcalendar view"
    2. Change calendar date field to "plain" formatter.
    3. Copy the template "calendar-view-day.html.twig to your theme
    4. Add this line in the row output and modify to your desired date format:

      {{ row['#values'].value | date('h:ma')}} - {{ row['#values'].end_value | date('h:ma') }}
Production build 0.71.5 2024