Example for batch processing

I have a yang representation of an access point. There can be potentially 1000s of access points in my setup. I am currently setting values for each Access point using JSON-RPC (from node.js). Is it a good practice to loop thru the access points and set the parameters or Is there any way I can batch process this or process this in the background and not block the event loop?

Over the JSON-RPC API you
• create a new webui (read-write) transaction, in preparation for changing the value
• change a value
• change a value

• change a value
• commit (save) the changes

While it is possible to through other transactional ConfD APIs (e.g. NETCONF <edit-config>, MAAPI maapi_set_values() ) set many values using one method / function / rpc call it is only possible to set one value at a time over ConfDs JSON-RPC API (several set_value per transaction however).