selectInput with 100,000+ choices?


#1

I’m working on an app where I would like people to be able to enter the name of a company and find some information about that company. The problem is I have information on over 100,000 companies and can’t use a simple selectInput because the app will just crash. I would like for someone to be able to enter a company such as “Amazon” and as the user begins typing options for companies in my data set show up and the more he/she enters the name in the further the list of potential companies gets narrowed.

You can do this on a small scale with selectInput and selectize set to True, but with the amount of companies I have it causes my app to crash. Does anyone know of a workaround for this problem?


#2

I believe this post from @yihui addresses exactly this question. Look at the server-side selectize option at the bottom.

https://shiny.rstudio.com/articles/selectize.html


#3

Just wanted to say thank you. This issue had been bothering me for a few months now. This is exactly the solution I was looking for.