add get_all_tournament_ids to avoid oom issues