[evolvis-commits] r18513: 15:26⎜«Lo-lan-do:#fusionforge» Just grab src/db/20120803-indices-for-rbac-tables.sql from trunk :-)↵ 15:27⎜«Lo-lan-do:#fusionforge» Actual gain on the particular query I mentioned (not estimates):↵ ⎜ time=50.013 to time=0.121.↵ 15:15⎜«Lo-lan-do:#fusionforge» Just committed the creation of four indices for the RBAC-related tables↵ 15:16⎜«Lo-lan-do:#fusionforge» On some queries (such as the one used for "who are the techs on this↵ ⎜ tracker?"), an explain goes from 0.00..4968.88 to 4.31..15.98 (on alioth).↵ 15:17⎜«Lo-lan-do:#fusionforge» On others, it "only" goes down from 70 to 8-15.

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Aug 3 15:34:32 CEST 2012


Author: mirabilos
Date: 2012-08-03 15:34:31 +0200 (Fri, 03 Aug 2012)
New Revision: 18513

Added:
   trunk/gforge_base/evolvisforge-5.1/src/db/20120803-indices-for-rbac-tables.sql
Modified:
   trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
Log:
15:26⎜«Lo-lan-do:#fusionforge» Just grab src/db/20120803-indices-for-rbac-tables.sql from trunk :-)
15:27⎜«Lo-lan-do:#fusionforge» Actual gain on the particular query I mentioned (not estimates):
     ⎜    time=50.013 to time=0.121.
15:15⎜«Lo-lan-do:#fusionforge» Just committed the creation of four indices for the RBAC-related tables
15:16⎜«Lo-lan-do:#fusionforge» On some queries (such as the one used for "who are the techs on this
     ⎜    tracker?"), an explain goes from 0.00..4968.88 to 4.31..15.98 (on alioth).
15:17⎜«Lo-lan-do:#fusionforge» On others, it "only" goes down from 70 to 8-15.

Added: trunk/gforge_base/evolvisforge-5.1/src/db/20120803-indices-for-rbac-tables.sql
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/db/20120803-indices-for-rbac-tables.sql	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/db/20120803-indices-for-rbac-tables.sql	2012-08-03 13:34:31 UTC (rev 18513)
@@ -0,0 +1,4 @@
+CREATE INDEX pforole_group_idx ON pfo_role(home_group_id);
+CREATE INDEX pfouserrole_rid_idx ON pfo_user_role(role_id);
+CREATE INDEX roleprojrefs_group_idx ON role_project_refs(group_id);
+CREATE INDEX pforolesetting_values_idx ON pfo_role_setting (section_name,ref_id);

Modified: trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl	2012-08-03 11:18:50 UTC (rev 18512)
+++ trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl	2012-08-03 13:34:31 UTC (rev 18513)
@@ -2510,6 +2510,7 @@
     &update_with_sql("20120329-pfo-rbac", "5.1-12+ev1");
     &update_with_sql("20120412-nuke-md5", "5.1-12+ev4");
     &update_with_sql("20120622-tracker-vote-table", "5.1-12+ev5");
+    &update_with_sql("20120803-indices-for-rbac-tables", "5.1-12+ev6");
 
     ########################### INSERT HERE #################################
 

Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-08-03 11:18:50 UTC (rev 18512)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-08-03 13:34:31 UTC (rev 18513)
@@ -1,12 +1,16 @@
 fusionforge (1:5.1.1+evolvis67) xunstable; urgency=low
 
+  [ Roland Mas ]
+  * Add indicēs for RBAC tables, for tremendous speedup
+
+  [ Thorsten Glaser ]
   * Fix a few warnings
   * Tracker: Fix layout bug in browse: position # results correctly
   * Tracker: Fix tooltip for status field (no Pending here)
   * Debug: Handle Debian-specific Mediawiki patch to suppress warnings
   * Move DTDs from www/DTD/ and common/include/ to common/DTD/ for sanity
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Fri, 03 Aug 2012 13:17:55 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Fri, 03 Aug 2012 15:32:53 +0200
 
 fusionforge (1:5.1.1+evolvis66) unstable; urgency=low
 



More information about the evolvis-commits mailing list