[英]What is the fastest jQuery v1.4.4 Ajax content respond way by server-side?
What is the fastest jQuery v1.4.4 Ajax content respond way by server-side? 服务器端最快的jQuery v1.4.4 Ajax内容响应方式是什么? I use PHP and MySQL. 我使用PHP和MySQL。
Do I have to convert MySQL data to JSON or XML format? 我是否必须将MySQL数据转换为JSON或XML格式? Or is there simpler way to have fastest Ajax respond by MySQL? 还是有更简单的方法让MySQL最快地响应Ajax?
I might to use jQuery Address State for it - https://github.com/asual/jquery-address , but seems it has to load-in a full html file just for to update small peaces of content data. 我可能会为此使用jQuery地址状态 -https : //github.com/asual/jquery-address ,但似乎它必须加载完整的html文件才能更新内容数据。
Preparing JSON would be a bit faster, then XML, and it will be smaller and faster sent to client. 准备JSON的速度要比XML快一些,并且发送给客户端的过程也更小,更快。
But really, I would focus on MySQL performance in your case. 但实际上,在您的情况下,我将重点介绍MySQL性能。 Selecting data will be times and times slower than sending a result via ajax. 选择数据将比通过ajax发送结果慢很多次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.