dbaghdanov
09/23/2019, 7:50 PMgetInput() phase up to 12 hours to complete. But running the same saved search in the UI, or in code returns very quickly.
Does anyone know what's up with that?stalbert
09/23/2019, 8:21 PMdbaghdanov
09/23/2019, 8:24 PMreturn { type: "search", id: "my_search_id"}, and supposedly they would optimize the search on the back end, but that's apparently not always the case 😛stalbert
09/23/2019, 9:14 PMgetData() now (i.e. returning an object that tells it what search to run?)stalbert
09/23/2019, 9:15 PMreduce MUST wait until ALL results have been processed else it can't know what groupings should emit to the reduce stage until candidate has already flowed through the map stagesdbaghdanov
09/23/2019, 9:21 PMfunction getInputData(ctx){
return{
type: "search",
id: runtime.getParameter('my_search_param')
}
}
But yes, like you've said, I think it does have to wait until the entire search result is completed before it passes off to the next state. And it is still limited to return 200MB of data to map()dbaghdanov
09/23/2019, 9:23 PMMin(internalid) and Max(internalid), just one search result with two fields, then had my map() use context.write() to spin out block of id's to delete