Improvement to the related products query in shops