codeintel: Optimize API Docs WriteDocumentationSearch
Created by: efritz
Major changes:
- Use batch inserter for tags
- Use batch inserter for search metadata
Before we were doing a query per row for each of the above (and many additional useless inserts for tags since they are highly duplicative). Now we do the minimum set of inserts per upload processing run.
Helps #21938