Problem
Currently the 2 hooks of EXT:solr into DataHandler are fired for all sites, their pages and records. This is time consuming. Especially the RecordMonitor is taking up to 10s to do its thing.
Side note: recursively changing the permissions (owner, group, bit-mask) of a page tree via "Access" module is the mother of all killer operations and often runs into memory allocation problems:
Fatal error: Allowed memory size of 402653184 bytes exhausted
But that seems to be a whole different problem, I believe.
Solution
For sites that don't use solr, it'll be great to have them skip the DataHandler hooks completely.
Target versions
EXT:solr 12.x