Hi there, the following page has a RFG with many fields and my client is needing to wait sometime close to a minute for the page to load or update on the backend: hidden link
Is there a way I should edit the Repeating Field Group to reduce the loading times of the page?
Thanks in advance,
- Luigi
Hi Luigi,
Thank you for contacting us and I'd be happy to assist.
Improving the loading times in the admin area is complicated, as WordPress, active theme and active plugins are all loading necessary processes and resources.
In case, a large number of repeating field group entries with multiple enclosed custom fields are involved on a post edit screen, one way to make it more efficient is to restructure this data, to make use of post-relationship instead of repeating field group:
https://toolset.com/documentation/post-relationships/
For example, if you have a post type "Events" with a repeating field group "Event Entries", you can drop this repeating field group and instead register a new custom post type "Event Entries".
These two post types can be then linked through a one-to-many relationship, where a single "Event" post can be attached to multiple "Event Entry" posts.
Any custom fields that you had inside the repeating field groups will be saved with the new custom post type "Event Entries" and the admin will be able to edit those custom field values from the respective "Event Entry" post's edit screen and not from the "Event" post's edit screen.
In terms of the database structure, the data storage method is pretty much the same whether you use a repeating field group or a post-relationship. However, the admin area management interface that is loaded for a post-relationship on the post edit screen is lighter than the one for the repeating field group, which can be just the boost that you're looking for.
Note: this restructuring would mean that you'll have to add all the data in "Event Entries" posts and their respective custom field values, so it will only be feasible if you're still in the early phase of your project.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
Thank you Waqar!
So there is no way to convert existing Field Group data to new Event Entries posts?
The data is in relation to the ongoing Covid-19 Pandemic so we cannot lose the current data, and there is too much to manually move over (feasibly). But if it's not possible to move the data over, perhaps we can wait until the current Hazard (Covid) has been dealt with and we can create this Post Relationship setup for future events.
Thanks again for your help.
You're very welcome Luigi.
> So there is no way to convert existing Field Group data to new Event Entries posts?
- Yes, I'm afraid there is no built-in automated option for this transfer.
But applying this Post Relationship setup for future events data should definitely prove useful.