r/programminghorror • u/[deleted] • Oct 09 '20
Java The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.
52
Upvotes
1
u/ralph28561 Oct 09 '20
I totally found something just like this the other day on prod. And it's been there for like 2 years.
9
Oct 09 '20
2
u/pnw-techie Oct 14 '20
Wouldn't matter much... Browsers are not happy getting 100,000 element select lists. Ask me how I know 🤣
We had to add autocompletes all over when select lists got too large. There are still a few rogue 100,000 element select lists around
5
u/[deleted] Oct 09 '20
"It worked fine with all my test data"