Android database lazy loading method based on proxy mode

A proxy mode and delayed loading technology, applied in the field of computer networks, can solve problems such as performance degradation, achieve the effect of improving usage efficiency and reducing memory overhead

Active Publication Date: 2015-06-17
AEROSPACE INFORMATION
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When a persistent entity is initialized from the database, are the collection properties of the entity initialized along with the persistent class? If the collection attribute contains hundreds of thousands or even millions of records, completing the capture of all collection attributes while initializing the persistent entity will lead to a sharp drop in performance

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
  • Android database lazy loading method based on proxy mode
  • Android database lazy loading method based on proxy mode
  • Android database lazy loading method based on proxy mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] In order to make the object, technical solution and advantages of the present invention clearer, the proxy mode-based android database delay loading method of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0014] In the agent mode-based android database delay loading method of the present invention, for the collection attributes, the proxy mode-based delay loading method is used, and the associated data is loaded from the database only when the system needs to use the collection attributes.

[0015] Including the following steps:

[0016] Step S100, using the proxy mode to realize the proxy of the collection class, and the DAO layer in the ORM accesses the proxy object of the collection class;

[0017] In step S200, the proxy class proxie...

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

The invention discloses an android database lazy loading method based on a proxy mode. The method includes the following steps that S100, proxy of a collection class is realized in the proxy mode, and a DAO layer in ORM visits a proxy object of the collection class; S200, a proxy class acts for an Iterator method of the collection class, and only when specific data are taken from a collection to call the Iterator method, does the proxy object fills up the collection by searching for a database. The utilization efficiency of the database is effectively improved, and the memory overhead of a system is effectively lowered.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a proxy mode-based android database delay loading method. Background technique [0002] ORMlite is a common ORM framework for operating sqlite databases. Due to its own characteristics, embedded devices need to be more cautious in utilizing system resources. Optimizations for ORMLite operations are also gaining attention. [0003] When a persistent entity is initialized from the database, are the collection properties of the entity initialized along with the persistent class? If the collection attribute contains hundreds of thousands or even millions of records, the performance will drop sharply if all the collection attributes are fetched while the persistent entity is initialized. Contents of the invention [0004] The object of the present invention is to provide a delay loading method for an android database based on a proxy mode, which can effectively improve t...

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
IPC IPC(8): G06F9/445G06F17/30
Inventor 王洪波付立库曹洪建陈懿陈皓张伟杨森
Owner AEROSPACE INFORMATION
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