Please sign in to comment.
Change the sl_log_* selection query from using a complicated where cl…
…ause into a series of UNION ALL queries with slightly simpler qualifications. The PostgreSQL optimizer failed on the old query to apply a lower bound on the index scankey, causing the query to always select from the beginning of the table. With a large backlog this caused significant time to be lost, visible as "time to first row". The new query delivers the first log row usually within milliseconds regardless of the size of sl_log_*. New feature explain_interval. This new slon.conf variable defines an interval in seconds at which the remote worker will output the current log selection query together with it's EXPLAIN query plan.
- Loading branch information...
Showing with 459 additions and 161 deletions.
Oops, something went wrong.