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
CN104714813AActive Publication Date: 2015-06-17AEROSPACE INFORMATION

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
AEROSPACE INFORMATION
Publication Date
2015-06-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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