首页> 外国专利> Method and mechanism for loading an XML document into memory

Method and mechanism for loading an XML document into memory

机译:将XML文档加载到内存中的方法和机制

摘要

A method and apparatus for loading an XML document into memory is provided. A client loads one or more array elements into a first partition of an array that is maintained in memory. Each array element represents an XML element of an XML document. Upon determining that an amount of data maintained in the first partition exceeds a first threshold, the client subsequently loads array elements into a new partition of the array. Upon determining that an amount of data maintained in the memory of the client exceeds a second threshold, the array elements of the least recently used partition are persistently stored in a database without persistently storing the entire XML document. When the last XML element of the XML document is loaded into a partition of the array, that partition is persistently stored in the database, thereby causing the entire XML document to be stored in the database.
机译:提供了一种用于将XML文档加载到存储器中的方法和装置。客户端将一个或多个数组元素加载到内存中维护的数组的第一分区中。每个数组元素代表一个XML文档的XML元素。在确定在第一分区中维护的数据量超过第一阈值时,客户端随后将阵列元素加载到阵列的新分区中。一旦确定在客户端的存储器中维护的数据量超过第二阈值,就将最近最少使用的分区的数组元素持久存储在数据库中,而不必持久存储整个XML文档。当XML文档的最后一个XML元素加载到数组的分区中时,该分区将永久存储在数据库中,从而使整个XML文档都存储在数据库中。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号