SpaceController.php#53bookingcore3.88msselectcount(*) as aggregate from (select `bravo_spaces`.*from `bravo_spaces` innerjoin `bravo_space_term` as `tt1` on `tt1`.`target_id` = `bravo_spaces`.`id` and `tt1`.`term_id` ='27'where `bravo_spaces`.`status` ='publish'and `bravo_spaces`.`deleted_at` isnullgroupby `bravo_spaces`.`id`) as `aggregate_table`
SpaceController.php#53bookingcore460μsselect*from `bravo_locations` where `bravo_locations`.`id` in (1, 2, 3, 4) and `bravo_locations`.`deleted_at` isnull
Hints
Use SELECT * only if you need all columns from table
SpaceController.php#92bookingcore1.84msselect `bravo_terms`.*, (selectcount(*) from `bravo_spaces` innerjoin `bravo_space_term` on `bravo_spaces`.`id` = `bravo_space_term`.`target_id` where `bravo_terms`.`id` = `bravo_space_term`.`term_id` and `bravo_spaces`.`deleted_at` isnull) as `space_count` from `bravo_terms` where `bravo_terms`.`attr_id` in (3, 4) and `bravo_terms`.`deleted_at` isnull