93_DbLog.pm: MySQL: neue Definition eines Indices auf history zur schnelleren

Generierung von Plots, SQL darauf angepasst


git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2614 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tobiasfaust
2013-01-31 04:03:12 +00:00
parent e97e230f04
commit cff10b8783
3 changed files with 168 additions and 165 deletions

View File

@@ -3,7 +3,7 @@
--
SET statement_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
@@ -69,7 +69,7 @@ ALTER TABLE fhem.history OWNER TO fhem;
-- Name: reading; Type: INDEX; Schema: fhem; Owner: fhem; Tablespace:
--
CREATE INDEX reading ON history USING btree (((((device)::text || '|'::text) || (reading)::text)), "timestamp");
CREATE INDEX search_Idx ON history USING btree (((((device)::text || '|'::text) || (reading)::text)), "timestamp");
--