Skip to content
How a Single SQL Query Cut Load by 60 Percent episode artwork

EPISODE · Aug 11, 2026 · 8 MIN

How a Single SQL Query Cut Load by 60 Percent

from The Software Engineering Podcast with Fexingo: Code, Architecture, and Engineering Best Practices · host Fexingo

In this episode of The Software Engineering Podcast, Lucas and Luna explore a real-world performance puzzle: a routine analytics query that was silently consuming 60 percent of a Postgres database's CPU. They walk through how one engineer traced the problem not to indexing or hardware, but to a subtle interaction between a join condition and a function wrapper that defeated the optimizer. The conversation covers query plan reading, function inlining, and the surprising cost of implicit type coercion. They discuss why even experienced teams miss these issues, how to spot them using EXPLAIN ANALYZE, and the broader lesson about writing queries that are not just correct but plan-friendly. A practical episode for anyone who works with SQL, ORMs, or databases at scale. #SQLOptimization #PostgresPerformance #DatabaseTuning #QueryPlan #FunctionInlining #TypeCoercion #EXPLAINANALYZE #SoftwareEngineering #TechPodcast #FexingoBusiness #BusinessPodcast #PerformanceDebugging #DatabaseEngineering #QueryTuning #EngineeringBestPractices #DataIntensiveApps #BackendEngineering #DatabaseInternals Keep every episode free: buymeacoffee.com/fexingo

Episode metadata supplied by the publisher feed · Published Aug 11, 2026

Embed this episode

Ready to play

How a Single SQL Query Cut Load by 60 Percent

0:00 8:57

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Software Engineering Podcast with Fexingo: Code, Architecture, and Engineering Best Practices?

This episode is 8 minutes long.

When was this The Software Engineering Podcast with Fexingo: Code, Architecture, and Engineering Best Practices episode published?

This episode was published on August 11, 2026.

Can I download this The Software Engineering Podcast with Fexingo: Code, Architecture, and Engineering Best Practices episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!