Skip to content

Conversation

@valentijnscholten
Copy link
Contributor

@valentijnscholten valentijnscholten commented Sep 13, 2025

Would this be an improvement? With the subquery 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

@9128305
Copy link

9128305 commented Oct 27, 2025

I have the same problem: #173 (comment)

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.

3 participants