You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there's an initial value (e.g. in an admin edit page), HeavySelect2Mixin.render_texts gets called which causes the whole dataset to be iterated. This basically makes this nifty library useless when dealing with big tables.
When there's an initial value (e.g. in an admin edit page),
HeavySelect2Mixin.render_texts
gets called which causes the whole dataset to be iterated. This basically makes this nifty library useless when dealing with big tables.In this line
self.choices
is a lazy representation of all possible choices, and accessing it triggers a SQL query withoutLIMIT
.https://github.com/applegrew/django-select2/blob/master/django_select2/widgets.py#L414
I tried to take a stab at it but no luck, not sure where to start fixing this issue.
Any pointers? Thanks!
The text was updated successfully, but these errors were encountered: