some code to analyze inventory performance at large scale