On this recent quarry query...
https://quarry.wmcloud.org/query/81893
SQL optimizer suggested I add logging_userindex. However that query still timed out. The correct alternative view to suggest here ended up being logging_logindex. Changing my query to use that fixed the timeout.
I see there is code to suggest logging_logindex in this repo already. Perhaps it can be adjusted to cover the above use case?