Closed mesilov closed 5 years ago
This can be implemented as 3 methods and delayed execution:
//Start batch block $obApp->batchStart(); //API-calls to be packed into batch $obLead->getList(); $obLead->get(); ... //Batch end $obApp->batchEnd(); //Run batch $obApp->batchExecute();
Every method called for the same $obApp between $obApp->batchStart() and $obApp->batchEnd() has to be stored in some cache ($batch[] = methodName+paramsArray), but not executed immediately. And then all these stored methods have to be executed on $obApp->batchExecute();
Programming effort here can be minimized by changing Bitrix24::call() to support delayed API-calls execution.
All other methods can be left untouched.
Will it be implemented in the near future?
http://dev.1c-bitrix.ru/rest_help/general/batch.php