Skip to content
Snippets Groups Projects
Commit 600e87fb authored by vlorentz's avatar vlorentz
Browse files

origin_visit_get_latest: Materialize subquery on 'origin' table.

postgresql's query planner does not understand the origin is unique, so it performs
a partial index scan on origin_visit_pkey, which is inefficient on origins with
many visits.

This commit itself is not enough to make it use the proper index,
but provides this necessary change that will be used by a future commit.
parent b0cdab58
No related branches found
No related tags found
1 merge request!771origin_visit_get_latest: Materialize subquery on 'origin' table.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment