简体   繁体   English

服务器端最快的jQuery v1.4.4 Ajax内容响应方式是什么?

[英]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.

相关问题 获取DIV的内容并保存到文件,jQuery / JS或服务器端 - Get the content of a DIV and save to a file, jQuery/JS or Server-side 在 PHP 中进行服务器端输出缓存的最佳方法是什么? - What is the best way to do server-side output caching in PHP? 如何使用棘轮响应HTML5服务器端事件? - How to use Ratchet to respond to HTML5 server-side events? 这是什么服务器端编程语言? - What server-side programming language is this? Datatable jquery + ajax + php无法获取表中的数据(服务器端处理) - Datatable jquery + ajax + php can't get data in table (Server-side processing) 存储1个变量服务器端的最佳方法 - Best way to store 1 variable server-side 服务器端验证显示空白字段,并且是将消息从一页显示到另一页的最佳方法是什么? - Server-side validation showing a blank field and what is the best way to display message from one page to another? jquery datatable服务器端分页无法正常工作 - jquery datatable server-side pagination not working 使用 Jquery 获取服务器端分页 - Getting Server-side pagination using Jquery 哪种验证更适合实践-服务器端还是客户端验证? - What validation is better to practice - Server-side or Client side validation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM