<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am trying to optimize a query which aims to do this: find the latest 100 blocks performed by a certain user (in this case, the Abuse filter account), and figure out if any of them were later unblocked by any user.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">My attempts so far have lead to <a href="https://quarry.wmflabs.org/query/15158">https://quarry.wmflabs.org/query/15158</a> which is still not efficient. I tried including the log_namespace in the join conditions to encourage the use of page_time index, but that wasn't helpful.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Does anyone have a better idea on how to optimize this query?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Huji<br></div></div>