On Fri, Oct 1, 2010 at 05:59, parsa <[email protected]> wrote:
> > > How do you generate this key-value map? All at once, or can you compute > each > > individual value given a key? > > I generate it all at once from the DB and it's an expensive process. > > > How does the map change? All at once, or do you know which specific keys > > need to be invalidated? > > It doesn't change in run-time. It changes on a schedule once in a > month. > > Then you're correct, a key-value cache or datastore is not what you want. Generate the data, save it as a generated blob on disk somewhere, and have your application load the entire blob and cache it locally on each webserver. It's only 600MB, so it should fit on each machine. If a machine restarts, it can always load the generated blob again. /Henrik
