Brilliant, thanks. Yes, RAM is a good option for me.
I figure 2 GB will last me 4 months. Then I can go up to 4, 8, 16, ...
Pretty good.
I figure 2 GB will last me 4 months. Then I can go up to 4, 8, 16, ...
Pretty good.
Would I use something like a wsgi webserver, that runs as a daemon, and occasionally dumps the data structure to disk?
Or is something like memcached better?
My preferred way of storing into RAM would be of course only storing changes, instead of storing the whole tree into RAM on every write.
After looking at your post again, and depending on data volume, you might be ok with a purely SQL solution too (ie, finding nodes 1 or 2 steps away on a graph is easy in SQL if your adjacency data is all in the db).