FullviewCalendar With Repeating Smart Date Events Causing Significant Load Times

Created on 17 May 2022, over 2 years ago
Updated 28 February 2023, over 1 year ago

Problem/Motivation

When using smart date with repeating events. The Fullcalendar View Preprocess will load every single instance each time it's loaded on the calendar. So if it's found 4 separate times on the calendar, it will load every instance 4 times which causes significant load times.

Steps to reproduce

  1. Create Site
  2. Install fullcalendar_view and smart_date
  3. Setup a content type which uses the smart_date
  4. Setup a view to use the smart_date with FullviewCalendar as a month display
  5. Create several nodes with recurring dates that will appear several times within the current month
  6. Load the newly created calendar and watch your loading times

Proposed resolution

My current solution is to keep track on which entities have been loaded already. Then I can simply skip them if they come up again. This has already shown to be around 3x faster using a site with quite a few calendar entries.

Remaining tasks

I don't believe this is the best way to do this. I think we shouldn't be loading all the recurring dates as separate entities. Instead it should just load the ones that are needed.

πŸ› Bug report
Status

Closed: won't fix

Version

5.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mitchel432

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024