20000 is a little too much too me. 200 max seems better. Or use a params [:per_page]