Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 增加服务器端数据表的处理时间_Php_Jquery_Datatable_Ini - Fatal编程技术网

Php 增加服务器端数据表的处理时间

Php 增加服务器端数据表的处理时间,php,jquery,datatable,ini,Php,Jquery,Datatable,Ini,我试图在使用datatable的同时提高我的网站的处理速度,我将内存限制改为400米,也增加了最大执行时间。网站的加载时间为2-3秒 我的网站正在Godaddy的Window服务器上托管。(共享托管) 这是我的密码- <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" cont

我试图在使用datatable的同时提高我的网站的处理速度,我将内存限制改为400米,也增加了最大执行时间。网站的加载时间为2-3秒

我的网站正在Godaddy的Window服务器上托管。(共享托管) 这是我的密码-

<!DOCTYPE html>
    <html>

    <head>
     <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

    </head>
    <body>

    <table class="table table-bordered data-table table-striped" id="data-table">
        <thead><tr><th>Report ID</th><th>Report Title</th><th class="tabhead">Price</th></tr></thead>

        <tfoot><tr><th>Report ID</th><th>Report Title</th><th class="tabhead">Price</th></tr></tfoot>
    </table>

    <link href="https://cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"></script>
    <script src="js/matrix.tables.js"></script>

    </body>
    </html>
server_processing.php

<?php

$table = 'tbl';

$primaryKey = 'id';
$columns = array(
    array( 'db' => 'id', 'dt' => 0 ),
    array( 'db' => 'title',  'dt' => 1 ),
    array( 'db' => 'price',   'dt' => 2 ),
);
$sql_details = array(
    'user' => '****',
    'pass' => '****',
    'db'   => '****',
    'host' => '****'
);
require( 'ssp.class.php' );

echo json_encode(
    SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
);
?>

还添加了ssp.class.php

当我尝试在datatable搜索框中搜索时,需要至少20-30秒才能做出响应。 我的代码有什么问题吗

我还应该做些什么来增加此网站的响应时间


任何帮助都将不胜感激。

您的数据库是否已优化?指数钥匙外键?是的,我的数据库已优化。但是它没有更多的桌子。
<?php

$table = 'tbl';

$primaryKey = 'id';
$columns = array(
    array( 'db' => 'id', 'dt' => 0 ),
    array( 'db' => 'title',  'dt' => 1 ),
    array( 'db' => 'price',   'dt' => 2 ),
);
$sql_details = array(
    'user' => '****',
    'pass' => '****',
    'db'   => '****',
    'host' => '****'
);
require( 'ssp.class.php' );

echo json_encode(
    SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
);
?>