speed up revision-based queries (not)createdby and (not)modifiedby

Change-Id: I435c38a411740702b11b1824436af5494d428924
Merge "speed up revision-based queries (not)createdby and (not)modifiedby"