Index: src/bp-core/bp-core-catchuri.php
===================================================================
--- src/bp-core/bp-core-catchuri.php
+++ src/bp-core/bp-core-catchuri.php
@@ -997,3 +997,36 @@
 	}
 }
 add_action( 'wp_head', '_bp_maybe_remove_rel_canonical', 8 );
+
+/**
+ * Do not do a DB query for the main WP_Query on BuddyPress single pages.
+ *
+ * As of WordPress 4.6, it is possible to bypass the main WP_Query entirely.
+ * This saves us one unnecessary database query! :)
+ *
+ * @since 2.7.0
+ *
+ * @param  null     $retval Current return value for filter.
+ * @param  WP_Query $q      Current WordPress query object.
+ * @return null|array
+ */
+function bp_posts_pre_query_filter( $retval, $q ) {
+	// Bail if not main query.
+	if ( false === $q->is_main_query() ) {
+		return $retval;
+	}
+
+	// Too early to check bp_is_single_item(), so check BP conditionals.
+	// If not on a BP single page, bail.
+	if ( false === ( bp_is_group() || bp_is_user() ) ) {
+		return $retval;
+	}
+
+	// Set default properties as recommended in the 'posts_pre_query' DocBlock.
+	$q->found_posts = 0;
+	$q->max_num_pages = 0;
+
+	// Return something other than a null value to bypass WP_Query.
+	return array();
+}
+add_filter( 'posts_pre_query', 'bp_posts_pre_query_filter', 10, 2 );
