$ 0 0 Reading the problem, looks like you need a map-reduce system or are you looking for something more complex than that?