Skip to content

Conversation

valentijnscholten
Copy link
Contributor

Would this be an improvement? With the subqyer approach there's the risk of having N+1 queries where the LAG might be more efficient?

I don't have any real world data in my pghistory tables yet to test, but I though it might be good to pop the question here.

@wesleykendall
Copy link
Member

Without explain/analyze plans over realistic large datasets to show it's more performant, it's unlikely I can approve. I can't tell you if it would be more performant by looking at it unfortunately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants