#21286 closed enhancement (duplicate)
Add filter to wp_dropdown_users to help huge networks
Reported by: | wonderboymusic | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.3 |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
wp_dropdown_users( ) currently has a filter, but it only filters the output. The query args need to be filterable, otherwise sites with a huge number of users cannot turn off or limit this function.
Gravity Forms calls this function in the admin, which causes PHP to run out of memory easily when you have 1,000,000 users. Other plugins can call this at will.
I have added a new filter for dropdown_users_args in my patch
Attachments (1)
Change History (8)
#3
follow-up:
↓ 5
@
13 years ago
I don't understand how scalable will help... having many users means having a big database, so splitting the table of the users to many other databases on different servers will help, but I could not figure out how to do this...
Like facebook having 500 million users... build on a farm of thousand servers that do the same task...
#5
in reply to:
↑ 3
@
13 years ago
Replying to alexvorn2:
I don't understand how scalable will help... having many users means having a big database, so splitting the table of the users to many other databases on different servers will help, but I could not figure out how to do this...
Like facebook having 500 million users... build on a farm of thousand servers that do the same task...
Most of the WordPress queries for users completely fall apart when you have a large number of users - this was trying to address one of those instances.
See #19867 which has a similar patch plus one for autocomplete functionality.