We have created a feature layer and uploaded it on ArcGIS online and after calling it from the javascript code it takes ~35 seconds to get the data using the execute method of the esri.tasks.QueryTask.
Is there any way to reduce the loading time of the data?