node.js - best practice for modeling local events data and querying results by user's location -


i storing live event data on backend in mongodb using mongoose , using map-based interface on frontend query events in user's area.

what efficient way structure data in order query results based on user's location?

my first approach create event schema location attribute , search results within r radius of user's location feel may inefficient given large database.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -