Find record through assiocations.
Just fetch all the commits and reject later.
Avoid looping through all the commits.