Last modified: 2013-04-02 14:26:41 UTC
Sometimes my bot reads a page just after writing it due to people's commands. Because of database lag, it sometimes gets the old version, which confuses my bot.[1] In this case, a "force read from master" toggle might be useful. [1] https://zh.wikipedia.org/w/index.php?title=User_talk:Liangent-bot&diff=next&oldid=25940295
IMO, it would be better for your bot to use maxlag=5 in its queries and to wait at least 5 seconds before re-reading the same page.
(In reply to comment #1) > IMO, it would be better for your bot to use maxlag=5 in its queries and to > wait > at least 5 seconds before re-reading the same page. Is it less expensive to process multiple repeated request than process one request from master?
(In reply to comment #0) > toggle might be useful. => severity = enhancement (feel free to set initially already)
(In reply to comment #2) > Is it less expensive to process multiple repeated request than process one > request from master? I expect it's less expensive to process multiple repeated requests with maxlag than to have people abusing this to process lots of requests from master.