Support :max_n_sub_records option.