The above line (from current master) raises an error when a query returns over 50k tiles from the database. We have started
acquiring TEM montages on the order of 70k-100k tiles, so this becomes an issue for handling those with our current model.
While we can change the hardcoding, it would be nice to pass this limit with a configuration or in the api call.