Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stephenwakely/sqlrefactor

Little tool to ease the process of refactoring sql monsters
https://github.com/stephenwakely/sqlrefactor

Last synced: about 2 months ago
JSON representation

Little tool to ease the process of refactoring sql monsters

Awesome Lists containing this project

README

        

# sqlrefactor
Little tool to ease the process of refactoring sql monsters. Provides a comparison between the original query and the refactored one as well as maintaining a history of the iterations.

Its a common scenario. You are faced with a massive three page SQL query that for some reason runs incredibly slowly. It's enough to put the fear of Beelzibub into any developer.

The query needs to be refactored, but it is so complex that even the slightest wrong change could change the resultset drastically.

SQL Refactor is a simple app to make this process easier.

Paste the query into the Base Query tab.

Then paste it into the Iterations tab. And start refactoring. When you make a change, run the query. The app will compare the results of the new query with the base query and report any changes. If the results are the same keep on going until you are happy with the performance.

If the results are different, you know you have messed up the refactoring. Step back to the previous iteration and carry on from there.