When Postgres is the wrong place to traverse the graph

Some performance problems are not query-optimization problems. You can index, rewrite, tune parameters, throw hardware at it — and still…