Noticed updating taxonomy terms take a long time and run out of memory

Noticed updating taxonomy terms take a long time and run out of memory