Function to add collections to a set of record in bulk