title: Searching at frontend vs backend in NodeJS
body: <p>I am developing a web application using NodeJS &amp; SailsJS frameworks. Now I am going to develop searching functionality. There are around 5000 records from which I want to search on one attribute.</p>
  
  <p>I know I can search it using mogodb query. What if I get all the records in javascript at frontend and search from it? What is good way to search? At backend using db query or at fronend using javascript searching?</p>