Hello!
I have now about 35000 taxonomy terms in hierarchy and hierarchy is necessary here - it's the location pages in the directory. Most of them even empty, but they still necessary - coz their term archive pages works as location pages.
I have super strong caching on different levels - from Mysql - via Redis - Opcache - WP Rocket - Cloudflare.
But there are still pitfals related to edit or initial requesting of some slow pages.
For example, I found that the close to the root taxonomy archives are making crazy requests with ids of all children - like "AND ( wp_term_relationships.term_taxonomy_id IN (6,17,21,31,41,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,…) etc, thousands of term ids there.
Is there a way to easy fix such a worse architecture? I saw the recommendation not to use hierarchical taxonomies, but I needed hierarchy. And I use most native taxonomy features, such as archives and lists of terms with numbers of posts inside.