A VS Code extension that rewrites Oracle SQL queries with Mistral AI — sargable filters, bind variables, better join order — then drops the diff right in your editor.
query time saved
join optimisation
components shipped
Hit replay to see OptiSql stream the diff exactly as it appears in VS Code — removed lines in red, additions in green. One click to accept and move on.
Analysts were writing ad-hoc Oracle queries in SQL Developer. Functions wrapping indexed columns (TO_CHAR, UPPER), joins in the wrong order, no bind variables. Plans were inconsistent. Runtimes were long. No one knew why.
I designed and built three components end-to-end: the VS Code extension in JavaScript, the Flask REST API in Python, and the Mistral prompt engineering that enforces Oracle-specific rewrite rules. My teammates handled the Oracle Cloud VM and ADB wallet config.
Median query time dropped 40–70% on target workloads. Plan regressions nearly gone. Analysts see changes as a diff, accept with one click, and move on. The workflow went from "why is this slow" to "done" in under ten seconds.