##_NOT_FOUND_IMAGE_## https://i.imgur.com/FTvfdEq.png ##_NOT_FOUND_IMAGE_##
Election maps are an interesting challenge for digital media: millions of people are awaiting the results hitting F5 endlessly in their desktops and accessing from their mobile devices (that means: from everywhere!) at the time that data comes bit by bit in what seems a very slow night. Receiving processing and publishing this data in an appealing way to offer an interactive application that enables the usable discovery and browsing of the election data is not an easy task.
But this is one of the situations where CartoDB comes to the rescue making easy and beautiful what before was hard and -many times- ugly. With the CartoDB Platform you can easily push real time updates of your data to populate your visualizations. The CartoDB infrastructure provides all needed to serve millions of users visiting your maps. But when you mix those two things it is recommended that you follow some guidelines to ensure optimal performance.
The key point is to avoid the continuous invalidation of the generated caches by not doing updates more than it is really needed.
- Only update data when new data is really available
- Update your data within reason and in batch. 5 minutes seems perfect
- Make updates with a single statement (as explained in Faster data updates with CartoDB )
- Make sure to use the latest version of cartodb.js library
As a bonus point consider showing us your application before going public to check things that could be optimized.
Some great election maps: live examples
Why CartoDB is the best tool for election maps
- Real time updates
- Quick deploy times
- Easy unlimited visual styling and customization
- Built-in interactivity: data filtering infowindows
- Seamless integration with your publication systems
- Embeddable maps: let your users republish your maps
- Easy redistribution of data in re-usable format: let your users consume the raw data you have processed
- Tutorial: Map election results
- Video: Creating an election map on CartoDB
- The Wall Street Journal’s 2012 election map done with CartoDB and our case study
- Scalable election mapping done right