I have following ideas.
Implement query limits on layer instead of map service.
Add ExecuteForColumn method to ArcGIS REST API: It should return the specified column values more than query limit similar to ExecuteForIds. It is more useful to get further reports based on well id or field id etc.
https://developers.arcgis.com/javascript/jsapi/querytask-amd.html#executeforidsIf you guys like this idea please vote for it.