Home Forums Plugin Support WP User Frontend (Free Version) Problems with your code – Not scalable

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10277

    Jackie
    Member

    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

    #10287

    Tareq Hasan
    Keymaster
    Post count: 2831

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘Problems with your code – Not scalable’ is closed to new replies.