I'm using ArcGIS Javascript API 3.17 to view my point data from ArcGIS server 10.3. Initially I have published the point data as dynamic map service but it is taking too long time to render the data over web as my feature class has around 80,000 point features. So I've changed dynamic map service to tiled map service and generated the cache. Now it is rendering too fast from cached tiles. Now the issue is that I have to perform Query task on my data.
Is it required to add dynamic map service also under tiled service in the map to perform the query tasks?