I am working on an application that uses Openstreetmap data in a local server. To enhance speed of searching inside the OSM database, I am considering caching some amount of data in RAM memory (aka the java heap of my application). I want to determine how much RAM will be consumed to cache various amounts of data. The complete data file is around 330 gigs and growing. How much ram would that translate to in memory? In general, is there a way to tell how much RAM would each gig of data in a postgres database consume (if cached outside of the database)?
Thank you folks.
Sachin