CN105487900A - Self-learning interface data loading system and method - Google Patents

Self-learning interface data loading system and method Download PDF

Info

Publication number
CN105487900A
CN105487900A CN201510865012.5A CN201510865012A CN105487900A CN 105487900 A CN105487900 A CN 105487900A CN 201510865012 A CN201510865012 A CN 201510865012A CN 105487900 A CN105487900 A CN 105487900A
Authority
CN
China
Prior art keywords
interface
data
statistics table
buffer memory
interface data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510865012.5A
Other languages
Chinese (zh)
Inventor
罗涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201510865012.5A priority Critical patent/CN105487900A/en
Publication of CN105487900A publication Critical patent/CN105487900A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a self-learning interface data loading system and method. The self-learning interface data loading method comprises: establishing a statistic information table and storing the statistic information table in a server end, wherein information inserted in the statistic information table includes an interface identifier, an interface data mark, client data information and statistic information; based on the statistic information table, constructing a memory cache model, constructing a cache when calling a function each time, and releasing the cache when closing the function, wherein the cache includes two parts of a statistic information cache and an interface cache; and calculating an interface mark of a current interface, obtaining first n interface data with a highest priority number according to a set quantity, loading data in the memory cache model to a corresponding interface, and updating information in the statistic information table. Therefore, the effect of improving the efficiency of interface data input on the premise of ensuring memory occupation is achieved.

Description

The interface data loading system of self study and method
Technical field
The present invention relates to data processing field, particularly, relate to a kind of interface data loading system and method for self study.
Background technology
In current application, the data that operating personnel often need typing a large amount of, and major part is all repetition typing in these data, in present application system, particularly in business management software application system, current process is mainly recorded last logging data or is directly processed, although can meet the demand of certain customers according to the default value of user's setting, but for needing the user switching multiple input interface, Consumer's Experience is bad.This patent provides a kind of interface prestrain method of self study, and the data that band access customer is conventional automatically on the basis ensureing dirigibility, improve the experience of user.
Current is that the mode of cache user frequently-used data or default settings realizes for addressing this problem the thinking generally adopted.Data cached, can solve part Input, but when user switches input interface, load when being cached with not out or loading error, buffer memory is mostly in client in addition, when user uses different clients, experiences bad.Default value mode, because data are fixed, can not reflect the latest data of user in time, so have problem on experiencing.
Publication number-in the patent document of CN102541602A, disclose a kind of pre-load means and prestrain method of interface, just the pattern at loaded and displayed interface, the data not in loaded and displayed interface.
Summary of the invention
The object of the invention is to, for the problems referred to above, propose a kind of interface data loading system and method for self study, to improve the advantage of interface data efficiency of inputting under the prerequisite realizing ensureing EMS memory occupation.
For achieving the above object, the technical solution used in the present invention is:
An interface data loading method for self study, comprising:
Set up Statistics table, and Statistics table is kept at server end, the information inserted in described Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Building memory cache model based on above-mentioned Statistics table, building a buffer memory when often calling a function, the release buffer memory when this function of closedown, buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
The interface calculating current interface indicates, according to the quantity of setting acquire a priority number the highest before n interface data, and by the interface of the Data import in above-mentioned memory cache model to correspondence, and upgrade the information in above-mentioned Statistics table.
Preferably, the data call of described Statistics table is specially:
Indicate according to interface and judge whether to there is Statistics table, if there is no, call new increasing function;
If existed, call interface data processing function;
Preferably, described new increasing function specifically comprises:
The interface identification calculated is inserted in Statistics table, the data message of client and statistical information is inserted in Statistics table simultaneously.
Preferably, described interface identification calculates according to user, website or interface I D.
Preferably, described statistical information, comprises interface data sign, interface data, interface call number, interface last service time and weights.
Preferably, described interface data processing function, specifically comprises,
Calculating interface indicates;
Judge whether this interface identification exists in the data statistic of Statistics table
As existed, then by access times+1, upgrading last service time, calculating priority valve, and data are saved to Statistics table;
If do not existed, then create Statistics table, access times are set to 1, upgrading last service time is submission time, calculates priority valve, and data are saved to Statistics table.
Preferably, described statistical information buffer memory is denoted as key with the queue of prioritization and one with interface by one, and statistical information is the map structure composition of value;
Described interface buffer memory is one and is denoted as key with interface, and interface data example is the map of value.
Preferably, the step arranging and generate the dimension that interface indicates also is comprised.
Technical solution of the present invention also discloses a kind of interface data loading system of self study simultaneously, comprises, Statistics table acquisition module, memory cache model building module and Data import module;
Described Statistics table acquisition module, obtains Statistics table, and the information inserted in described Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Described memory cache model building module, memory cache model is built based on described Statistics table, build a buffer memory when often calling a function, the release buffer memory when this function of closedown, buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
Described Data import module: the interface calculating current interface indicates, according to setting quantity acquire a priority number the highest before n interface data, and by the Data import in above-mentioned memory cache model to corresponding interface, and upgrade the information in above-mentioned Statistics table.
Preferably, also comprise user and arrange module, described user arranges module, for arranging the dimension generating interface and indicate.
Technical scheme of the present invention has following beneficial effect:
The present invention does not have prestrain when using first without statistical information, so experience does not promote, along with user uses, according to the use habit of user, statistical information will be enriched, and the hit rate of preloading data will improve greatly.Thus under reaching the prerequisite ensureing EMS memory occupation, improve the efficiency of interface data typing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
The process flow diagram of the interface data loading method that Fig. 1 is the self study described in the embodiment of the present invention;
The theory diagram of the interface data loading system that Fig. 2 is the self study described in the embodiment of the present invention;
Fig. 3 is the statistical information structural representation described in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
As shown in Figure 1, a kind of interface data loading method of self study, comprising:
Set up Statistics table, and Statistics table is kept at server end, the information inserted in Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Building memory cache model based on above-mentioned Statistics table, building a buffer memory when often calling a function, the release buffer memory when this function of closedown, buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
The interface calculating current interface indicates, according to the quantity of setting acquire a priority number the highest before n interface data, and by the interface of the Data import in above-mentioned memory cache model to correspondence, and upgrade the information in above-mentioned Statistics table.
Wherein, the data call of Statistics table is specially:
Indicate according to interface and judge whether to there is Statistics table, if there is no, call new increasing function;
If existed, call interface data processing function;
New increasing function specifically comprises:
The interface identification calculated is inserted in Statistics table, the data message of client and statistical information is inserted in Statistics table simultaneously.
Interface identification calculates according to user, website or interface I D.
Statistical information, comprises interface data sign, interface data, interface call number, interface last service time and weights.
Interface data processing function, specifically comprises,
Calculating interface indicates;
Judge whether this interface identification exists in the data statistic of Statistics table
As existed, then by access times+1, upgrading last service time, calculating priority valve, and data are saved to Statistics table;
If do not existed, then create Statistics table, access times are set to 1, upgrading last service time is submission time, calculates priority valve, and data are saved to Statistics table.
Statistical information buffer memory is denoted as key with the queue of prioritization and one with interface by one, and statistical information is the map structure composition of value;
Interface buffer memory is one and is denoted as key with interface, and interface data example is the map of value.
Preferably, the step arranging and generate the dimension that interface indicates also is comprised.
As shown in Figure 2, a kind of interface data loading system of self study, comprises, Statistics table acquisition module, memory cache model building module and Data import module;
Statistics table acquisition module, obtains Statistics table, and the information inserted in Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Memory cache model building module, Corpus--based Method information table builds memory cache model, builds a buffer memory when often calling a function, the release buffer memory when this function of closedown, and buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
Data import module: the interface calculating current interface indicates, according to the quantity of setting acquire a priority number the highest before n interface data, and by the interface of the Data import in above-mentioned memory cache model to correspondence, and upgrade the information in above-mentioned Statistics table.
System also comprises user and arranges module, and user arranges module, for arranging the dimension generating interface and indicate.
This programme main thought is use habit and the service time of statistics user, according to the used interface of user, priority scoring is carried out to its data content, when opening interface, high for scoring corresponding for this interface first interface data loaded and write in interface data, simultaneously according to user arrange buffer memory the highest before the data at n interface.When buffer memory capacity exceedes the limit preset, the interface data be of little use is displaced buffer memory to ensure EMS memory occupation amount according to using algorithm to carry out replacing recently by buffer memory.
Be implemented as follows:
First need to set up Statistics table and use the frequency of certain sets of data, last service time and priority score information for recording certain user at certain interface, its structure as shown in Table 1 and Table 2.
Table 1, user and interface master meter.
Table 2, data statistic.
Statistics table is sky when system uses for the first time, after user employs certain interface, will call new increasing function and process.
Newly-increased function representation is as follows:
Will according to user, website, the unique identification that the dimensions such as interface I D calculate is inserted in master meter, simultaneously also by the data message of client and statistical information (interface data sign thereof, interface data, interface call number, interface last service time and by weights formulae discovery weights out) insert table in.
Weights in table determine the use frequent degree of this kind of template for certain user, and weights are higher, then this user more tends to use this interface.The calculating of weights is provided by formula, such as:
priority=A*num+B*time,
In formula, num and time is exactly num and time in table, represent the access times at this interface and last service time respectively, A and B represents num and time significance level number percent separately (can require to balance usage frequency and nearest service time to the preferential impact loaded according to embody rule), if the access times at interface are more, and last service time and present time more close, the weights so calculated are larger, then illustrate that user often uses this interface, should pay the utmost attention to when prestrain interface.
When reusing, triggered in this function registration to user operation by developer, be handled as follows:
Need to indicate according to interface to judge whether to there are master meter data, if there is no, call new increasing function;
If existed;
Call interface data processing function.
Interface processing function representation is as follows:
Calculating interface indicates;
Judge that this is identified in certain sets of data statistical form and whether exists;
Exist, access times+1, upgrade last service time, calculate priority valve, preserve data;
Do not exist, create record, arrange interface and indicate and interface data, be set using number of times=1, upgrading last service time is submission time, calculates priority valve, preserves data.
(1) Statistics table stores at server end;
(2) set up memory cache model: in order to ensure the EMS memory occupation amount of client, do not realize core resident buffer memory in client, but build a buffer memory when often opening a function, discharge buffer memory when closing function.Buffer memory comprises statistical information buffer memory and interface buffer memory two parts.Statistical information buffer memory comprises one and is denoted as key with the queue of prioritization and one with interface, and statistical information is the map structure composition of value.Interface buffer memory is one and is denoted as key with interface, and interface data example is the map of value.Statistical information structure as shown in Figure 3.
(3) loading procedure: when interface is opened, by independently threading building buffer memory and prestrain interface, solves in the pre-load means and prestrain method of patent interface.The loading of data that what technical solution of the present invention will solve is, specific as follows:
First, when buffer memory loads, build statistical information buffer structure by the statistical information of preserving.Calculate interface according to the calculating dimension of current interface to indicate, according to predetermined quantity acquire a priority number the highest before n interface data, and by first set Data import to corresponding interface, and the last service time of the respective interface in statistical information is updated to current time, and access times increase is once.If there is no information in statistical information, then build empty statistical information model and interface cache model, use original buffer memory or the default value plan of establishment to carry out Data import simultaneously.
(4) statistical information upgrades: when user's closing function, calculate the priority weight of each interface data according to the service time in statistical information, number information and be recorded in database table, and empirical data uses for loading next time.
(5) user is arranged: provide and arrange interface, and arranging the dimension generating interface and indicate, can be all interface datas and environmental data.After arranging, according to the data got, provide the algorithm generating interface in real time and indicate.Such as: all dimensions are combined into long character string, carry out MD5 computing, generate the methods such as unique key, selected by user's sets itself.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an interface data loading method for self study, is characterized in that, comprising:
Set up Statistics table, and Statistics table is kept at server end, the information inserted in described Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Building memory cache model based on above-mentioned Statistics table, building a buffer memory when often calling a function, the release buffer memory when this function of closedown, buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
The interface calculating current interface indicates, according to the quantity of setting acquire a priority number the highest before n interface data, and by the interface of the Data import in above-mentioned memory cache model to correspondence, and upgrade the information in above-mentioned Statistics table.
2. the interface data loading method of self study according to claim 1, is characterized in that, the data call of described Statistics table is specially:
Indicate according to interface and judge whether to there is Statistics table, if there is no, call new increasing function;
If existed, call interface data processing function.
3. the interface data loading method of self study according to claim 2, is characterized in that, described new increasing function specifically comprises:
The interface identification calculated is inserted in Statistics table, the data message of client and statistical information is inserted in Statistics table simultaneously.
4. the interface data loading method of self study according to claim 3, is characterized in that, described interface identification calculates according to user, website or interface I D.
5. the interface data loading method of self study according to claim 3, is characterized in that, described statistical information, comprises interface data sign, interface data, interface call number, interface last service time and weights.
6. the interface data loading method of self study according to claim 2, is characterized in that, described interface data processing function, specifically comprises,
Calculating interface indicates;
Judge whether this interface identification exists in the data statistic of Statistics table
As existed, then by access times+1, upgrading last service time, calculating priority valve, and data are saved to Statistics table;
If do not existed, then create Statistics table, access times are set to 1, upgrading last service time is submission time, calculates priority valve, and data are saved to Statistics table.
7. according to the interface data loading method of the arbitrary described self study of claim 1 to 6, it is characterized in that, described statistical information buffer memory is denoted as key with the queue of prioritization and one with interface by one, and statistical information is the map structure composition of value;
Described interface buffer memory is one and is denoted as key with interface, and interface data example is the map of value.
8. according to the interface data loading method of the arbitrary described self study of claim 1 to 6, it is characterized in that, also comprise the step arranging and generate the dimension that interface indicates.
9. an interface data loading system for self study, is characterized in that, comprise, Statistics table acquisition module, memory cache model building module and Data import module;
Described Statistics table acquisition module, obtains Statistics table, and the information inserted in described Statistics table comprises, interface identification, interface data sign, client data information and statistical information;
Described memory cache model building module, memory cache model is built based on described Statistics table, build a buffer memory when often calling a function, the release buffer memory when this function of closedown, buffer memory comprises statistical information buffer memory and interface buffer memory two parts;
Described Data import module: the interface calculating current interface indicates, according to setting quantity acquire a priority number the highest before n interface data, and by the Data import in above-mentioned memory cache model to corresponding interface, and upgrade the information in above-mentioned Statistics table.
10. the interface data loading system of self study according to claim 9, is characterized in that, also comprises user and arranges module, and described user arranges module, for arranging the dimension generating interface and indicate.
CN201510865012.5A 2015-12-01 2015-12-01 Self-learning interface data loading system and method Pending CN105487900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510865012.5A CN105487900A (en) 2015-12-01 2015-12-01 Self-learning interface data loading system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510865012.5A CN105487900A (en) 2015-12-01 2015-12-01 Self-learning interface data loading system and method

Publications (1)

Publication Number Publication Date
CN105487900A true CN105487900A (en) 2016-04-13

Family

ID=55674896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510865012.5A Pending CN105487900A (en) 2015-12-01 2015-12-01 Self-learning interface data loading system and method

Country Status (1)

Country Link
CN (1) CN105487900A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775786A (en) * 2017-03-23 2017-05-31 北京赛迈特锐医疗科技有限公司 Optimize the system and method for complex information input interface

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205581B1 (en) * 1997-11-07 2001-03-20 Samsung Electronics Co., Ltd. Method for replace-block loading in a multiprocessor system
CN101008922A (en) * 2007-01-26 2007-08-01 浙江大学 Segmentation and paging data storage space management method facing heterogeneous polynuclear system
CN101702173A (en) * 2009-11-11 2010-05-05 中兴通讯股份有限公司 Method and device for increasing access speed of mobile portal dynamic page
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN102779058A (en) * 2012-06-28 2012-11-14 用友软件股份有限公司 Interface data loading device and interface data loading method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205581B1 (en) * 1997-11-07 2001-03-20 Samsung Electronics Co., Ltd. Method for replace-block loading in a multiprocessor system
CN101008922A (en) * 2007-01-26 2007-08-01 浙江大学 Segmentation and paging data storage space management method facing heterogeneous polynuclear system
CN101702173A (en) * 2009-11-11 2010-05-05 中兴通讯股份有限公司 Method and device for increasing access speed of mobile portal dynamic page
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN102779058A (en) * 2012-06-28 2012-11-14 用友软件股份有限公司 Interface data loading device and interface data loading method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775786A (en) * 2017-03-23 2017-05-31 北京赛迈特锐医疗科技有限公司 Optimize the system and method for complex information input interface

Similar Documents

Publication Publication Date Title
CN104572167B (en) The method and computer system of starting and the unmanned application program participated in of management
CN107180338A (en) Business performs method, device, storage medium and computer equipment
CN108428104A (en) Wages computational methods, application server and computer readable storage medium
CN107463610B (en) Data warehousing method and device
CN108536745A (en) Tables of data extracting method, terminal, equipment and storage medium based on Shell
US20140344314A1 (en) Optimizing storage in a publish / subscribe environment
CN107451853A (en) Method, apparatus, system and the storage medium that a kind of red packet distributes in real time
CN107145547A (en) A kind of acquisition methods of abnormal data, equipment and computer-readable recording medium
CN108062243A (en) Generation method, task executing method and the device of executive plan
CN106503008A (en) File memory method and device and file polling method and apparatus
US9049164B2 (en) Dynamic message retrieval by subdividing a message queue into sub-queues
CN106325870A (en) Realization method and device of API (Application Programming Interface) of dynamic form
CN110399096A (en) Metadata of distributed type file system caches the method, apparatus and equipment deleted again
CN102006297A (en) Two-level policy decision-based access control method and system
CN110378778A (en) Multi-data source account checking method, system, electronic equipment and storage medium
CN109739440A (en) Distributed sharing storage method, storage medium, electronic equipment and system
CN105487900A (en) Self-learning interface data loading system and method
CN110471769A (en) A kind of method for managing resource and device of virtual machine
CN108243220A (en) A kind of invoice issuing method and system of the support polymorphic type invoice terminal based on tax control server
CN106815062A (en) A kind of business pipelined data processing method and processing device
CN104166650B (en) Data storage device and date storage method
CN109947736A (en) The method and system calculated in real time
CN108108392A (en) Commodity data management method, device, computer equipment and storage medium
CN107491700A (en) A kind of data access method and equipment
CN107454456A (en) A kind of management control method and system of floating layer element

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication