Job/Batch Update in Setup.php

Status
This content is read-only, or is not open for further replies.

mjda

Guest
offline
I have an add-on with two different tables (Entities). One is for xf_addon_data and one for xf_addon_data_archive. I'm wanting to move all the records from xf_addon_data_archive to the xf_addon_data table in the Setup.php when I upgrade the add-on. However, I worry about doing a simple foreach because, in my case, there are well over 25,000 records in the archive and I'm worried it could time-out.

I know how to create a Job for that, and I could run it from the Tools->Rebuild caches page...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom