Problems with your code – Not scalable

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 5 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
November 20, 2013 at 3:20 am 10277
Tareq Hasan There some problems with your code for WP User Front End. On a site like ours with more than 600K users, these functions could effectively stall out our servers. If you have more than a few hundred users, this plugin is going to start hurting. The code makes a lot of unnecessarily expensive calls to store the entire user database in an array. 1. wpuf_list_users - this function attempts to load the entire user database multiple calls to this functions from other areas in the plugin 2. wpuf_show_users - attempts to pull all users in a separte wpdb query, then run through a loop to display them all in a list
November 20, 2013 at 9:57 am 10287
Tareq Hasan Tareq Hasan

I agree with that, the query is costly to generate user dropdown. But for a single functionality, “Default Post Owner“, had to do that sadly.

Viewing 1 Posts - 1 through 1 (of 1 total)