I am developing a web application with Express/MongoDB for the back-end. The user will be able to type a university name, and autocomplete will engage to suggest the possible university names allowed. Since the universities in my list are pre-determined and well-defined, should I simply implement an array of possibilities or should i make a collection of universities in MongoDB and then implement an index to search them?
My problem with going with the first option (implementing of an array of possibilities) is that I want the ability to have database field to be basically an enum with all the possibilites.
My university list has around 500 entries, is it too much to create such enum/validation on the database?
Subscribe to get latest updates