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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -