Home › Forums › Add-ons › Repeater Field › How to improve performance on add_row() for repeater field › Reply To: How to improve performance on add_row() for repeater field
There isn’t going to be a way to improve performance. The issue is that even if you update the entire repeater at once of you update 1 row at a time you will be generating more than one DB query for each sub field of each row being added. 1000 rows * 6 sub fields = ~12,000 db queries.
If it’s not too late you should reevaluate why you are using a repeater and if there might be a better way to accomplish the storage of this data.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.