From 8807d9159d939de1e3ff65818381a20b542bbd4f Mon Sep 17 00:00:00 2001 From: LtWorf Date: Tue, 12 May 2009 15:09:57 +0000 Subject: [PATCH] added specific optimizations in GUI git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@169 014f5005-505e-4b48-8d0a-63407b615a7c --- CHANGELOG | 9 ++++++++- relational_gui/maingui.py | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) 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)