Logic Machine Forum
Multiple objects methods - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Multiple objects methods (/showthread.php?tid=1818)



Multiple objects methods - buuuudzik - 05.01.2019

I've found such methods called on multiple objects:

Code:
-- write value (e.g. 127) to the object
myobjects:write(127)
-- read all tagged objects
myobjects:read()


Are they send only one request to db so maybe they are better in some complex task than sending a lot of single commands?


RE: Multiple objects methods - admin - 05.01.2019

No, these methods do a for loop and call single object methods. There's a small delay between each call to prevent telegram flood.


RE: Multiple objects methods - buuuudzik - 05.01.2019

Thanks for reply Smile