Using decorators. Optimize user favourites query.