TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: New approach to SQL optimization that works (mostly)

2 pointsby l5870uoo9y8 months ago
I&#x27;ve been messing around with getting AI to reliably optimize complex SQL queries without constantly making errors. A prompt like: “You are a skilled SQL expert tasked with optimizing this: SELECT *...” doesn&#x27;t get you far.<p>That&#x27;s why I&#x27;ve chosen to divide the optimization process (step-by-step approach):<p>- AI suggests concrete optimization improvements - The user selects the desired optimization improvement - AI rewrites the SQL query according to the optimization improvement<p>This approach has several advantages:<p>- The user has full control over which optimization improvements are implemented - AI can handle relatively complex SQL queries without making errors<p>Screencast: <a href="https:&#x2F;&#x2F;files.sqlai.ai&#x2F;optimize-sql-query.mp4" rel="nofollow">https:&#x2F;&#x2F;files.sqlai.ai&#x2F;optimize-sql-query.mp4</a><p>Try it out: <a href="https:&#x2F;&#x2F;www.sqlai.ai&#x2F;app&#x2F;optimize-sql" rel="nofollow">https:&#x2F;&#x2F;www.sqlai.ai&#x2F;app&#x2F;optimize-sql</a>

no comments

no comments