I’ve recently automated a large portion of my Rails performance audits. In this tutorial, I’ll describe how to configure an AI-powered PG performance debugging. We will cover using LLMs with custom MCP (model context protocol) n8n integration. We will also discuss the legal and security implications of connecting AI to the production database. How to optimize PostgreSQL performance with AI? I’m not sure if the current blogosphere needs yet another introduction to MCP. Instead, here’...