This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Multiple objects methods
#1
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?
Done is better than perfect
Reply
#2
No, these methods do a for loop and call single object methods. There's a small delay between each call to prevent telegram flood.
Reply
#3
Thanks for reply Smile
Done is better than perfect
Reply


Forum Jump: