I'm building an app with django ,which is going display a map of the top voted items.
I'm not an experienced web developed and i wonder where and when and where should build them map. (this line for example --> )
map_osm.create_map(path='osm.html')
Right now i placed in my views.py, and it's building the map each time a user view it, the question is - wouldn't it create too much overhead computation for the server?
I thought about updating it aslo every x votes,or keep a model that will manage it.
what is the best practice in this kind of situation?