Method for prefetching object

An object and prefetching technology, which is applied in the directions of instruments, calculations, and electrical digital data processing, etc., can solve problems such as prefetching strategies, failure to consider, and waste of network resources, so as to reduce burden, improve performance, and increase read hit rate. Effect

Inactive Publication Date: 2008-11-26
PEKING UNIV
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method does not take into account the many types, large quantities, and complex relationships of objects in current persistent applications. Therefore, it is impossible to make a more accurate prefetching strategy for the association relationship in object query, regardless of the size of the object. All prefetching will lead to a large waste of network resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for prefetching object
  • Method for prefetching object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0012] Such as figure 1 As shown, after the user sends a read request to the persistent system, after the persistent system receives the read request in step 1, it judges whether the information of the object is stored in the object cache according to the type and keyword of the object corresponding to the read request; step 2 If there is storage, return the information of the object corresponding to the read request; Step 3 If there is no storage, analyze the attribute information of the object according to the object-relationship mapping information stored in the persistence system, and generate The object information of the object is stored in the object cache.

[0013] The present invention requires maintaining object-relationship mapping information in the object-relationship persistence system to ensure correct association and judgment in subsequent operations. These mapping information should include: each object type, keyword and its associated Object information, the...

Embodiment 2

[0025] Based on the first embodiment, this embodiment specifically illustrates the specific implementation process of the method involved in the present invention based on prefetching objects in the "JPA" (Java Persistence API) persistence layer. JPA, as the object-relational mapping specification of the "Java EE 5.0" language platform standard, will be supported by all Java EE servers. JPA uses "JDK 5.0" annotations or Extensible Markup Language (Extensible MarkupLanguage; hereinafter referred to as: XML) to describe the mapping relationship of object-relational tables, and persists entity objects in the runtime to the database. JPA's API is used to operate entity objects , perform create, read, update, and delete operations, and the framework does everything behind the scenes.

[0026]The implementation based on the JPA persistence layer includes: First, according to the "JDK 5.0" annotation or XML description, generate object-relational mapping information, specifically ref...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

This invention relates to a method for pre-taking objects in a permanent object-relationship system including receiving a read request and judging if information of an object is stored in the object buffer storage according to the kind and key words of the object corresponding to the read request, if so, the information of the object is returned, otherwise, the attribute information of said object is analyzed based on the object-relationship mapping information stored in the system then to store the generated information into the buffer storage, which introduces a pre-taking strategy to an object-relationship permanent system to suit the current complicated object design of multiple kinds and large numbers and increase the read hit ratio of the system to the utmost.

Description

technical field [0001] The invention relates to a method for prefetching objects, in particular to a method for prefetching objects in an object-relational persistence system. Background technique [0002] As the enterprise application software system becomes more and more mature, the amount of data to be processed in the system also increases exponentially, which makes the application load more and more serious. In addition, the lack of network bandwidth causes the user to use the system. Persistent application performance has become the main goal of enterprise applications. Persistence means saving the data or documents in the memory to a storage device that can be stored permanently, specifically referring to storing the data in the memory in a relational database. [0003] Persistence operations include various operations related to the database. The persistence system is located between the business logic layer and the database layer and is responsible for saving data ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 梅宏曹东刚周明辉林亮
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products