mjda
Well-known member
I have an add-on with a custom thread type but now I've found a better/easier way to handle some of the things I needed the custom thread type for so I'd like to change all those threads back to thread_type = 'discussion'. The question is, would I be fine changing them all with a simple query so I can change them all at once or do I need to use the entity->fastUpdate for each one?
If the latter, is there an easy way to do that in batches using Setup.php? I usually write something using the rebuild cache, just so it'll do things in batches but I'm assuming there must be a way to do that sort of thing in the Setup.php so it'll do it when I update the add-on instead of me having to manually go in and click a button to make it start?
If the latter, is there an easy way to do that in batches using Setup.php? I usually write something using the rebuild cache, just so it'll do things in batches but I'm assuming there must be a way to do that sort of thing in the Setup.php so it'll do it when I update the add-on instead of me having to manually go in and click a button to make it start?