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 without LIMIT.
I tried to take a stab at it but no luck, not sure where to start fixing this issue.
Any pointers? Thanks!
I have had this issue reported before too but nobody was able to mention this so clearly. I will check this.
Please download the latest Master code and let me know if you can replicate the issue anymore.
Works great now, thanks!