Getting users of group is inefficient
-
When loading users of a group the plugin executes one query for the IDs of users in this group and then two queries for each ID (SELECT * FROM wp_users, SELECT … from wp_usermeta).
I understand that the wp_usermeta query probably comes from WordPress itself but why not load all users in a single query?
We have about 6’000 users in a group which leads to 12’001 requests when loading a list of all users of that group. And we need to load all at once (pagination is not an option).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Getting users of group is inefficient’ is closed to new replies.