2 ms·Adjacency list in the database, build the tree in memory, cache the result in memcached if you need to.by tlrobinson 19y agoAdjacency list in the database, build the tree in memory, cache the result in memcached if you need to.