Redundant create table statements
-
We noticed that there are lots of heavy sql statements. We have site and plugin (v. 3.1.57) ready running.
There statements are difficult or impossible to cache.
See below:CREATE TABLE IF NOT EXISTS wp_sib_model_forms (
id
int(?) NOT NULL AUTO_INCREMENT,title
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,html
longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,css
longtext,dependTheme
int(?) NOT NULL DEFAULT ?,listID
longtext,templateID
int(?) NOT NULL DEFAULT -?,confirmID
int(?) NOT NULL DEFAULT -?,isDopt
int(?) NOT NULL DEFAULT ?,isOpt
int(?) NOT NULL DEFAULT ?,redirectInEmail
varchar(?),redirectInForm
varchar(?),successMsg
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,errorMsg
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,existMsg
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,invalidMsg
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,requiredMsg
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,attributes
TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci,date
DATE NOT NULL,isDefault
int(?) NOT NULL DEFAULT ?,gCaptcha
int(?) NOT NULL DEFAULT ?,gCaptcha_secret
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,gCaptcha_site
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,termAccept
int(?) NOT NULL DEFAULT ?,termsURL
varchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci, PRIMARY KEY (id
) );SHOW COLUMNS FROM
wp_sib_model_forms
LIKE ?Can you check and optimize the code?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Redundant create table statements’ is closed to new replies.