Optimisation of the Rankings for big databases