[wp-trac] [WordPress Trac] #31746: get_blogs_of_user() can be very slow when a user is a member of thousands of sites
WordPress Trac
noreply at wordpress.org
Wed Apr 27 12:58:38 UTC 2016
#31746: get_blogs_of_user() can be very slow when a user is a member of thousands
of sites
--------------------------+-----------------------------
Reporter: jtsternberg | Owner: johnbillion
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Users | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------+-----------------------------
Comment (by nerrad):
Just thought of an '''Option 3''' add a blog_id column to the user_meta
column. Then instead of having to prefix any meta_key specific to a blog
you just put the blog_id in its OWN column. Then any queries retrieving
the blogs a user belongs to can just grab distinct blog ids.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31746#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list