#198461 by chx: use a simple subquery instead of iterating through all nodes...
#198461 by chx: use a simple subquery instead of iterating through all nodes and updating the term_node table one-by-one, which easily caused a timeout on sites with lots of term-node associations