BloggerTalks
New Pleskian
Good morning Plesk Support, my website has 1068790 rows and it very slow to handle queries
That how i created the table and i was using it on cPanel before and worked fine, but when I moved to Plesk it seems it slow to handle users query and i make use of NGINX and Apache.. the area you see int(11) is for id, varchar(255) is for users input but well formatted to avoid hacks
Here my code i used in inserting clean users input
Please, am i missing any settings that could help in improving the speed please? Thanks awaiting your reply
That how i created the table and i was using it on cPanel before and worked fine, but when I moved to Plesk it seems it slow to handle users query and i make use of NGINX and Apache.. the area you see int(11) is for id, varchar(255) is for users input but well formatted to avoid hacks
Here my code i used in inserting clean users input
$search_term = preg_replace('/drop table|mysql|md5|sql|setcookie|db.Execute|hex2bin|public html|delete from|insert into|update table|select from/', '', filter_spam(strtolower(strip_tags($_GET['q'])))); but i don't know why Plesk is not handling the queries real fast .function filter_spam($string){ $url = str_replace("'", ' ', $string); $url = str_replace('', ' ', $url); $url = preg_replace('~[^\\pL0-9_]+~u', ' ', $url); $url = trim($url, ""); return $url;} function cleanURL($string){ $url = str_replace("'", ' ', $string); $url = str_replace("'", '', $string); $url = str_replace('%20', ' ', $url); $url = preg_replace('~[^\\pL0-9_]+~u', '-', $url); $url = trim($url, "-"); $url = strtolower($url); return $url;}
Please, am i missing any settings that could help in improving the speed please? Thanks awaiting your reply