[Django] #26561: SelectBox Too Slow With Thousands of Options

6 views
Skip to first unread message

Django

unread,
Apr 29, 2016, 9:25:05 PM4/29/16
to django-...@googlegroups.com
#26561: SelectBox Too Slow With Thousands of Options
----------------------------+----------------------------------------------
Reporter: dsanders11 | Owner: nobody
Type: | Status: new
Uncategorized |
Component: | Version: master
contrib.admin |
Severity: Normal | Keywords: selectbox admin many-to-many m2m
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
----------------------------+----------------------------------------------
There's several tickets and patches over the years regarding this, but
nothing has come of it, and it's still slow after 9 (!) years. The last
ticket I can find that made meaningful progress on it was #3202 which
itself was closed in preference of #15220 rewriting it to jQuery 5 years
ago, which had some work as recently as 9 months ago but then teetered
out.

IMO this issue shouldn't continue to be kicked down the road, and a patch
should be accepted for improved performance even if it doesn't close
#15220. It's not an easy problem for third-party apps to address and when
it gets slow it gets too slow to function.

I'm providing a pull request with changes that greatly improved
performance in my testing with 20,000 items. It's still laggy but that's
to be expected, and the goal here isn't to make it smooth as butter, but
functionally useable for users.

--
Ticket URL: <https://code.djangoproject.com/ticket/26561>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 30, 2016, 8:33:16 AM4/30/16
to django-...@googlegroups.com
#26561: SelectBox Too Slow With Thousands of Options
-------------------------------------+-------------------------------------

Reporter: dsanders11 | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: selectbox admin | Triage Stage: Accepted
many-to-many m2m |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/26561#comment:1>

Django

unread,
May 3, 2016, 10:25:27 AM5/3/16
to django-...@googlegroups.com
#26561: SelectBox Too Slow With Thousands of Options
-------------------------------------+-------------------------------------
Reporter: dsanders11 | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed

Keywords: selectbox admin | Triage Stage: Accepted
many-to-many m2m |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"fb68674ea4b05280e3deb2ed23602038755092bc" fb68674e]:
{{{
#!CommitTicketReference repository=""
revision="fb68674ea4b05280e3deb2ed23602038755092bc"
Fixed #26561 -- Improved admin's JavaScript SelectBox performance on large
lists.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26561#comment:2>

Reply all
Reply to author
Forward
0 new messages