This is redundant information with a JOIN this can be queried from the repository table directly. And just if the repository private or not is not the only access control that needs to be checked for.
I'm afraid this has to be calculated on-demand and that NumStars need to be removed from the User profile, as it changes based on who is asking.
]]>