MDL-39571 repository_recent: query improvement