From a8426840dad0018b7af88da21e45738454955d7b Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Tue, 9 Jun 2020 02:06:57 +0200 Subject: [PATCH] Disable all optimizations for now They are in need of a refactor --- CHANGELOG | 3 +++ relational/optimizations.py | 30 +++++++++++++++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index eaf8226..605c77a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +3.0 +- Refactored parser to use better typing + 2.6 - Improved survey sending - Prevent relation/field names from being reserved keywords diff --git a/relational/optimizations.py b/relational/optimizations.py index 42c141e..07909a6 100644 --- a/relational/optimizations.py +++ b/relational/optimizations.py @@ -1,5 +1,5 @@ # Relational -# Copyright (C) 2009-2018 Salvo "LtWorf" Tomaselli +# Copyright (C) 2009-2020 Salvo "LtWorf" Tomaselli # # Relational is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -709,22 +709,22 @@ def useless_projection(n, rels) -> int: return changes + recoursive_scan(useless_projection, n, rels) general_optimizations = [ - duplicated_select, - down_to_unions_subtractions_intersections, - duplicated_projection, - selection_inside_projection, - subsequent_renames, - swap_rename_select, - futile_union_intersection_subtraction, - swap_union_renames, - swap_rename_projection, - select_union_intersect_subtract, - union_and_product, + #duplicated_select, + #down_to_unions_subtractions_intersections, + #duplicated_projection, + #selection_inside_projection, + #subsequent_renames, + #swap_rename_select, + #futile_union_intersection_subtraction, + #swap_union_renames, + #swap_rename_projection, + #select_union_intersect_subtract, + #union_and_product, ] specific_optimizations = [ - selection_and_product, - projection_and_union, - useless_projection, + #selection_and_product, + #projection_and_union, + #useless_projection, ] if __name__ == "__main__":