diff --git a/CHANGELOG b/CHANGELOG index afd9c41..8f01182 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -74,4 +74,11 @@ - Uses python-psyco when it is available - Ability to perform optimizations from GUI - Able to (temporarily) store queries with a name -- Mechanism to add new kind of optimizations, without having to edit all the code \ No newline at end of file +- Mechanism to add new kind of optimizations, without having to edit all the code +- Implemented duplicated_select general optimization +- Implemented down_to_unions_subtractions_intersections general optimization +- Implemented duplicated_projection general optimization +- Implemented selection_inside_projection general optimization +- Implemented subsequent_renames general optimization +- Implemented swap_rename_select general optimization +- Implemented selection_and_product specific optimization diff --git a/relational_gui/maingui.py b/relational_gui/maingui.py index 3889f1a..1f8fea2 100644 --- a/relational_gui/maingui.py +++ b/relational_gui/maingui.py @@ -56,7 +56,8 @@ class Ui_Form(object): pass def optimize(self): self.undo.insert(len(self.undo),self.txtQuery.text()) #Storing the query in undo list - result=optimizer.general_optimize(str(self.txtQuery.text().toUtf8())) + + result=optimizer.optimize_all(str(self.txtQuery.text().toUtf8()),self.relations) self.txtQuery.setText(QtCore.QString.fromUtf8(result)) #self.txtQuery.setText(result)