Commit 87701a7e authored by Dan Notestein's avatar Dan Notestein
Browse files

Optimize bridge_get_account_posts_by_replies by moving "ORDER BY ar.id DESC"...

Optimize bridge_get_account_posts_by_replies by moving "ORDER BY ar.id DESC" out of inner query so that optimizer doesn't think it should do a sequential scan of hive_posts (the LIMIT + ORDER BY seems to have led it astray). Previous code was too slow when the author didn't have any posts that could be replied to.
parent a7670785
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment