//The query below runs much faster when using a where clause var selQuery = new esri.tasks.Query(); //selQuery.where = "OBJECTID = " + [addResults[0].objectId]; selQuery.objectIds = [addResults[0].objectId]; //The query below takes about 40 seconds to run when using only the objectIds. var selQuery = new esri.tasks.Query(); //selQuery.where = "OBJECTID = " + [addResults[0].objectId]; selQuery.objectIds = [addResults[0].objectId];