added specific optimizations in GUI
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@169 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
8393ca93d9
commit
8807d9159d
@ -75,3 +75,10 @@
|
|||||||
- Ability to perform optimizations from GUI
|
- Ability to perform optimizations from GUI
|
||||||
- Able to (temporarily) store queries with a name
|
- Able to (temporarily) store queries with a name
|
||||||
- Mechanism to add new kind of optimizations, without having to edit all the code
|
- 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
|
||||||
|
@ -56,7 +56,8 @@ class Ui_Form(object):
|
|||||||
pass
|
pass
|
||||||
def optimize(self):
|
def optimize(self):
|
||||||
self.undo.insert(len(self.undo),self.txtQuery.text()) #Storing the query in undo list
|
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(QtCore.QString.fromUtf8(result))
|
||||||
|
|
||||||
#self.txtQuery.setText(result)
|
#self.txtQuery.setText(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user