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 (idint(?) NOT NULL AUTO_INCREMENT,titlevarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,htmllongtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,csslongtext,dependThemeint(?) NOT NULL DEFAULT ?,listIDlongtext,templateIDint(?) NOT NULL DEFAULT -?,confirmIDint(?) NOT NULL DEFAULT -?,isDoptint(?) NOT NULL DEFAULT ?,isOptint(?) NOT NULL DEFAULT ?,redirectInEmailvarchar(?),redirectInFormvarchar(?),successMsgvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,errorMsgvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,existMsgvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,invalidMsgvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,requiredMsgvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,attributesTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci,dateDATE NOT NULL,isDefaultint(?) NOT NULL DEFAULT ?,gCaptchaint(?) NOT NULL DEFAULT ?,gCaptcha_secretvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,gCaptcha_sitevarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci,termAcceptint(?) NOT NULL DEFAULT ?,termsURLvarchar(?) CHARACTER SET utf8 COLLATE utf8_unicode_ci, PRIMARY KEY (id) );SHOW COLUMNS FROM
wp_sib_model_formsLIKE ?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.