r3805 - trunk/varnish-tools/webgui

petter at projects.linpro.no petter at projects.linpro.no
Mon Feb 23 08:17:20 CET 2009


Author: petter
Date: 2009-02-23 08:17:20 +0100 (Mon, 23 Feb 2009)
New Revision: 3805

Modified:
   trunk/varnish-tools/webgui/create_db_data.pl
   trunk/varnish-tools/webgui/varnish_webgui.sql
Log:
Gain some speed by at least creating index on the stat table

Modified: trunk/varnish-tools/webgui/create_db_data.pl
===================================================================
--- trunk/varnish-tools/webgui/create_db_data.pl	2009-02-22 17:48:24 UTC (rev 3804)
+++ trunk/varnish-tools/webgui/create_db_data.pl	2009-02-23 07:17:20 UTC (rev 3805)
@@ -111,6 +111,9 @@
 	description TEXT
 );
 
+CREATE INDEX stat_time ON stat(time);
+CREATE INDEX stat_node_id ON stat(node_id);
+
 INSERT INTO node_group VALUES(0, 0, 'Standalone');
 
 $parameter_info_sql

Modified: trunk/varnish-tools/webgui/varnish_webgui.sql
===================================================================
--- trunk/varnish-tools/webgui/varnish_webgui.sql	2009-02-22 17:48:24 UTC (rev 3804)
+++ trunk/varnish-tools/webgui/varnish_webgui.sql	2009-02-23 07:17:20 UTC (rev 3805)
@@ -1,4 +1,4 @@
--- This file was auto generated Wed Feb 18 15:58:37 2009 by create_db_files.pl
+-- This file was auto generated Mon Feb 23 08:16:23 2009 by create_db_files.pl
 DROP TABLE node_group;
 DROP TABLE node;
 DROP TABLE stat;
@@ -188,6 +188,9 @@
 	description TEXT
 );
 
+CREATE INDEX stat_time ON stat(time);
+CREATE INDEX stat_node_id ON stat(node_id);
+
 INSERT INTO node_group VALUES(0, 0, 'Standalone');
 
 INSERT INTO parameter_info VALUES('accept_fd_holdoff', 'ms', 'Default is 50. If we run out of file descriptors, the accept thread will sleep.  This parameter control for how long it will sleep.   NB: We do not know yet if it is a good idea to change this parameter, or if the default value is even sensible.  Caution is advised, and feedback is most welcome. ');



More information about the varnish-commit mailing list