Page MenuHomePhabricator

Add a parameter to force read from master
Closed, DeclinedPublic

Description

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


Version: 1.22.0
Severity: enhancement

Details

Reference
bz46715

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:30 AM
bzimport set Reference to bz46715.
bzimport added a subscriber: Unknown Object (MLST).

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.

Anomie set Security to None.
Restricted Application added a subscriber: Stang. · View Herald TranscriptOct 16 2020, 5:29 PM