Consider a plugin which adds a custom Taxonomy and then fills the taxonomy with a large term hierarchy (tens of hierarchical terms, may become hundreds in specific installations). I understand that
register_taxonomy() does not store data in the database, therefore it must be used via the
init hook so that the taxonomy is registered on each page load. However,
wp_insert_term() does store data in the database.
With that in mind, would it be preferable to run
register_activation_hook() after ensuring that
register_taxonomy() has run? And then run only
register_taxonomy() on the 'init' hook for each page load?
For reference, my specific use case is the GeoAreas WP plugin, which currently has about fifty terms. I am develping the next version of the plugin which will support more diverse geographical areas and should support a few hundreds of terms for large geographical areas such as Europe or the US.