The batch query for rev_id is not working as it's supposed to

Instead of firing one batch query, it's still firing individual queries

Change-Id: Ic913ea15a099ead430dd1114d739609c67a49a56
Merge "The batch query for rev_id is not working as it's supposed to"