I have an array of IDs that I am doing foreach loop and searching each ID in a SOLR index using Php Apache SOLR client. Its slow like a dead turtle. Any help appreciated in optimizing this
foreach ( $f_games as $game_id ){
$game_type = BKT_PLUGIN_CLASS::tv_regions($game_id);
//Do my stuff
$count++;
}
Where
BKT_PLUGIN_CLASS::tv_regions
is my class method for SOLR API search ( which works fine, no issues there ).
So its doing what i want it to do. It takes each ID and goes to SOLR and brings the result of that item and I do what I want to do and increase count. With only 200+ IDs, it takes more than 2 minutes to spit out results.