[wp-trac] [WordPress Trac] #44593: get_sites() : Limitation of 100 websites ?

WordPress Trac noreply at wordpress.org
Fri Feb 1 01:53:19 UTC 2019


#44593: get_sites() : Limitation of 100 websites ?
--------------------------------+----------------------
 Reporter:  onpc                |       Owner:  (none)
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  invalid
 Keywords:                      |     Focuses:
--------------------------------+----------------------
Changes (by desrosj):

 * status:  new => closed
 * resolution:   => invalid
 * version:  4.9.6 =>
 * component:  General => Networks and Sites
 * milestone:  Awaiting Review =>


Comment:

 Hi @onpc, thanks for this ticket and welcome to Trac!

 Some multisite instances have many thousands (if not millions!) of sites.
 Querying every site on those installs will crash. Querying the entirety of
 any data set all at once does not scale and is not considered good
 practice.

 100 is a sensible limit that was chosen as the default. If you have
 performance data that suggests that limit is too low (or high), this
 ticket can be reopened and the default number can be reevaluated. But
 retrieving all sites at once is not an option.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44593#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list