传统AJAX引擎在解析较大的回传XML文档时时间开销过大,为了解决这一问题,提出了一种改进的AJAX模型,并给出了一个应用实例。改进AJAX模型采用结构化的并行数组来存储回传数据,避免了对半结构化的XML文档进行解析,提高了数据利用效率。实验结果表明,改进AJAX模型可以满足较大数据量的业务处理要求,明显缩短了用户等待时间。在3000千条记录以下的数据表中应用这一模型,客户端与服务器交互顺畅,可以很好地满足用户实时性要求。
Traditional AJAX (asynchronous JavaScript and XML) engine occupy too much time to parse returned XML document with larger volume of data. In order to solve this problem, an improved AJAX model is put forward and an application example is given. The improved AJAX model uses a parallel array as data model to store the returned data. Because it avoids the parsing of semi-structured XML document, the data utilization efficiency is improved. Experimental results show that the improved AJAX model meet the business requirements with processing large number of data and significantly reduce the user waiting times. Applying this model in the data table whose records count is no more than 3000, the client and server interact smoothly, so it can well satisfy the users’real-time requirements.