Reply To: Increase search member performance
Prior to BP 1.7, last_activity was stored usermeta.
Now it is stored in the activity table, (although you may see it still in usermeta for legacy purposes).
Moving it to the activity table resulted in much improved performance.
You’ll probably see similar results.
also – sometimes 2 queries are faster than one massive one with multiple joins, ands, ors.
also 2 – Have you studied this?
https://wordpress.org/plugins/bp-profile-search/
It’s been around for several years and the query has become more efficient with each release.