[wp-trac] [WordPress Trac] #13580: Ajax Tag Search crashes browsers on databases with large tag lists or slow connections

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 16:54:01 UTC 2010


#13580: Ajax Tag Search crashes browsers on databases with large tag lists or slow
connections
--------------------------+-------------------------------------------------
 Reporter:  brianlayman   |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  high          |   Milestone:  3.0              
Component:  Editor        |     Version:  3.0              
 Severity:  critical      |    Keywords:  editor,tags,crash
--------------------------+-------------------------------------------------
 In short, many conditions can cause the ajax-tag-search to take a long
 time. This is not just limited to database size or speed but is also
 dependent upon the speed of the author's connection. When a browser JS
 call times out, the user can hit stop script, however the script is
 usually triggered again almost immediately. The end result currently seems
 to be the browser session crashing. At best, when these delays happen,
 getting suggestions for tags can take 30+ seconds be a very tedious
 process.

 This simple backwards compatible patch addresses the issue by allowing
 site by site customization of the variables involved.

 This patch references two new option values:[[BR]]

 ats_min_chars - Allows you to specify how many letters must be typed
 before the search is done. Currently, this number is hard coded at "2".
 That is the default for the patch..[[BR]]

 ats_min_count - Allows you to eliminate tags that are used infrequently.
 This uses the count column on the already included term_taxonomy table; so
 it does not expand the query at all. It defaults to "0"

 The code in this patch has been running live at b5media for a while now
 with the defaults of 3 for min chars and either 10 or 20 for the post
 count dependent upon which site is involved.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13580>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list