This helps avoid reading unnecessarily large amounts of data from the table when querying with a set of room IDs.