Skip to content

Conversation

bradbanister
Copy link
Contributor

@bradbanister bradbanister commented Sep 17, 2025

I took the existing joins-based query, which was 20% slower than original on my machine, and gave it to Claude Code after plugging in this PostgreSQL MCP. He turned it into something 2.5x faster than original.

So, I gave him the existing views-based query, which was 12% slower for me, and he made something 2.9x faster than original.

I would describe the level of effort for both of these optimizations to be very low. I was mostly eating pizza and typing with one hand, and know nothing about query optimization. Obviously, this piggybacked on the original effort of @simpat-adam

@bradbanister bradbanister marked this pull request as ready for review September 18, 2025 17:12
@bradbanister bradbanister changed the title [DMS-818] DO NOT MERGE: Relational flattening performance spike artifacts [DMS-818] Relational flattening performance spike Sep 18, 2025
@simpat-adam simpat-adam merged commit 73aa13c into main Sep 18, 2025
27 checks passed
@simpat-adam simpat-adam deleted the DMS-818 branch September 18, 2025 17:48
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