Line 186 bp-activity-classes.php – SELECT *
-
From Line 186 of the bp-activity-classes.php:
$activities = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM {$bp->activity->table_name} WHERE id IN ({$activity_ids}) ORDER BY date_recorded {$sort} $pag_sql” ) );
I’m just learning here (so please be gentle) – is there a reason the SELECT * is used rather than specific tables? Is the * necessary? I’m just curious as I’m reading the code to see what’s there … because isn’t * taxing to the server and faster to provide the specific tables?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Line 186 bp-activity-classes.php – SELECT *’ is closed to new replies.