From dcac532f269306d02cae190eaffec3c918387e3c Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 8 Apr 2013 23:15:10 +0000 Subject: [PATCH] add indices after load --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 79f91e8..79b8f22 100644 --- a/main.c +++ b/main.c @@ -478,11 +478,8 @@ sqldumpstart() printf("index time (start,end),\n"); printf("index start (start),\n"); printf("index event_crid (event_crid),\n"); - printf("index series_crid (series_crid),\n"); - printf("fulltext (name),\n"); - printf("fulltext (text),\n"); - printf("fulltext (name,text)\n"); - printf(") engine=myisam;\n"); + printf("index series_crid (series_crid)\n"); + printf(") engine=innodb;\n"); printf("truncate epg_load;\n"); printf("lock tables epg_load write;\n"); } @@ -491,6 +488,9 @@ void sqldumpend() { printf("unlock tables;\n"); + printf("alter table epg_load add fulltext(name);\n"); + printf("alter table epg_load add fulltext(text);\n"); + printf("alter table epg_load add fulltext(name,text);\n"); printf("analyze table epg_load;\n"); printf("drop table if exists epg;\n"); printf("alter table epg_load rename as epg;\n");