Home Should I Ajax or should I store the whole collection into a variable ?
Reply: 0

Should I Ajax or should I store the whole collection into a variable ?

user444
1#
user444 Published in April 19, 2018, 8:56 pm

I am building a single page app. The app has a list of 7000 ports stored in a MongoDB database. I need to be able to search for those ports with autocomplete on the search.

Should I Ajax the autocomplete results ?

OR

Should I retrieve the whole collection of ports, store it in a variable, plug my autocomplete on this array ?

What's the best practice ? What's the smartest performance wise ?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.25025 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO