Commit Graph

224 Commits (9032f1c674f5f0e58eabe66298b285651655021c)
 

Author SHA1 Message Date
LtWorf 3c4b91272b Code refactory to move the new parser into parser.py out of optimizer.py, that will still be compatible
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@190 014f5005-505e-4b48-8d0a-63407b615a7c
2009-06-09 10:36:33 +07:00
LtWorf 6524ea2d9f replaced old compiler, using the new one also in parser.py, and bug fixed
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@189 014f5005-505e-4b48-8d0a-63407b615a7c
2009-06-09 10:22:52 +07:00
LtWorf 378ace1a2b new relational to python compiler
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@188 014f5005-505e-4b48-8d0a-63407b615a7c
2009-06-09 10:02:07 +07:00
LtWorf dd43097d7e added comments
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@187 014f5005-505e-4b48-8d0a-63407b615a7c
2009-06-09 09:05:48 +07:00
LtWorf 7659e39bd3 fix to optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@186 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-30 15:17:51 +07:00
LtWorf 10227d1ae7 Cleaned up code
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@184 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-26 14:00:44 +07:00
LtWorf 7b827082d6 improved futile_union_intersection_subtraction optimization. Now it works also if one of the subtrees has a selection and the other doesn't
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@183 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-26 13:39:59 +07:00
LtWorf 43766eeeae Implemented swap_rename_projection general optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@182 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-25 17:04:24 +07:00
LtWorf d51d4bada7 fixed selection_and_product optimization. It modified the original relation
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@178 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-25 13:54:35 +07:00
LtWorf dac465779c Implemented swap_union_renames general optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@177 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-23 08:21:43 +07:00
LtWorf 644d96dc63 fixed subsequent_renames. Now handles cycling renames and completely futile ones like renaming attribute into itself
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@176 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-22 23:08:40 +07:00
LtWorf 5e30121812 Implemented futile_union_intersection_subtraction general optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@175 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-22 22:20:31 +07:00
LtWorf 5dead3a058 stub for parallel execution
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@174 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-13 15:39:19 +07:00
LtWorf 328d0f6bce removed todo... because i did
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@173 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-13 14:34:35 +07:00
LtWorf 1cffcffdbc fixed problem with select and renames when using fields
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@172 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-13 14:15:30 +07:00
LtWorf 17080aa381 fixed problem with select and renames when using fields
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@171 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-13 14:06:42 +07:00
LtWorf 77c6cec3e9 now saved queries have a default value
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@170 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 15:13:48 +07:00
LtWorf 8807d9159d added specific optimizations in GUI
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@169 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 15:09:57 +07:00
LtWorf 8393ca93d9 extended selection_and_product to join
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@168 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 14:48:44 +07:00
LtWorf dd15d6776b solved another error in token->string procedure. this thing is quite hard
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@167 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 13:53:27 +07:00
LtWorf e5e7dcddd2 fixed error that caused an infinite loop
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@166 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 13:49:43 +07:00
LtWorf bc60be3ace optimization on product and select working
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@165 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 13:31:25 +07:00
LtWorf 004a6bb84e optimization on product and select working
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@164 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 13:30:19 +07:00
LtWorf ccc8a5ee0d modified tree. Now it is able to return the fields that an operation will return
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@163 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 12:36:01 +07:00
LtWorf e35b85e534 removed debug prints and corrected returning of modified nodes
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@162 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 08:11:45 +07:00
LtWorf 61a94e73c0 swap_rename_select working
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@161 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 08:03:24 +07:00
LtWorf 952b31ac53 stub for swap_rename_select
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@160 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-12 06:38:58 +07:00
LtWorf 824379cf4c how to do 3rd party optimizations
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@159 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-11 16:57:23 +07:00
LtWorf e1d02bcd4c removed debug prints and added comments
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@158 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-11 16:51:43 +07:00
LtWorf f273425312 finally subsequent_renames optimization is working
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@157 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-11 16:44:52 +07:00
LtWorf 04cc61d317 redoundant renames still under work... this thing is harder than i though
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@156 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-11 16:38:49 +07:00
LtWorf 9cf8cc34a1 work on progress on subsequent renames
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@155 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-08 15:42:02 +07:00
LtWorf c7f1aa060e completed implementation of selection_inside_projection
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@154 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-08 14:51:31 +07:00
LtWorf b3a9d98d24 added selection_inside_projection
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@153 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-08 14:46:29 +07:00
LtWorf 9627500a21 Able to (temporarily) store queries with a name
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@152 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-06 16:35:21 +07:00
LtWorf 185c3f661d stub to save queries
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@151 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-06 16:05:27 +07:00
LtWorf 698517067f moved optimization button into advanced (and hidden by default) box
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@150 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-06 14:36:02 +07:00
LtWorf 195ef42596 added button to undo optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@149 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-06 14:10:42 +07:00
LtWorf 23740eea4d added button to optimize
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@148 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-06 13:38:58 +07:00
LtWorf 04e3b8e316 added __eq__ method to the tree
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@147 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-01 14:45:31 +07:00
LtWorf 7ecf75efb7 stupid indentation
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@146 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-01 13:50:59 +07:00
LtWorf 52907e67e7 Optimization for rearrangements
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@145 014f5005-505e-4b48-8d0a-63407b615a7c
2009-05-01 13:47:54 +07:00
LtWorf 444d3f9987 optimizes over and over until the tree is stabilized
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@144 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-30 18:21:50 +07:00
LtWorf 88efcf0b78 i need to reduce sets, so i need selection pushed down in each case
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@143 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-30 17:41:05 +07:00
LtWorf 723c63641d added optimization to push down selection when sub-expression has union, intersection or subtraction
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@142 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-30 17:39:07 +07:00
LtWorf b694fdd99d can generate empty nodes
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@141 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-30 17:10:05 +07:00
LtWorf bc0492ef77 moved the initialization of psyco after the initialization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@140 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-29 12:14:00 +07:00
LtWorf a877fd2dcf tries to use python-psyco
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@139 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-29 12:06:30 +07:00
LtWorf ac0d6fae85 counting changes on the tree
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@138 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-29 08:36:28 +07:00
LtWorf 4ba7209964 now handles more than 2 nested selections
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@137 014f5005-505e-4b48-8d0a-63407b615a7c
2009-04-29 07:25:39 +07:00