Page MenuHomePhabricator

Is RPOW helping us at all under standalone?
Closed, ResolvedPublic

Description

In CRM_Standaloneusers_BAO_Session::read, which is called on every request, we see this query:

$stmt = $db->prepare("SELECT * FROM $table_name WHERE session_id = ? FOR UPDATE");

RPOW classifies this as an rw query and replays everything executed to that point on the r/w db and sets a write cookie.

I think this means we're not actually getting any web requests fully executing on the r/o database, which might explain some of the performance complaints about page loads we're hearing lately.

Event Timeline

Given resurgence of slowness complaints, moving into +1 for discussion.

AKanji-WMF triaged this task as Medium priority.Feb 9 2026, 6:42 PM
AKanji-WMF moved this task from Sprint +1 to Chaos Crew Backlog on the Fundraising-Backlog board.

This investigation feels more chaos, in retrospect.

The answer: Nope, because it was pointed to the main db. To try this next week and then we can look at the question above.

XenoRyet set Final Story Points to 1.