[go: up one dir, main page]

CN105095198B - A kind of method and device accessing data entity - Google Patents

A kind of method and device accessing data entity Download PDF

Info

Publication number
CN105095198B
CN105095198B CN201410153312.6A CN201410153312A CN105095198B CN 105095198 B CN105095198 B CN 105095198B CN 201410153312 A CN201410153312 A CN 201410153312A CN 105095198 B CN105095198 B CN 105095198B
Authority
CN
China
Prior art keywords
data entity
authentic
analogue
entity
content
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.)
Active
Application number
CN201410153312.6A
Other languages
Chinese (zh)
Other versions
CN105095198A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410153312.6A priority Critical patent/CN105095198B/en
Publication of CN105095198A publication Critical patent/CN105095198A/en
Application granted granted Critical
Publication of CN105095198B publication Critical patent/CN105095198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

This application discloses a kind of methods for accessing data entity, to realize the purpose for improving running efficiency of system, it include: in response to receiving multiple access requests to data entity, analogue data entity is returned for access request and executes the concurrent access to the corresponding authentic data entity of analogue data entity, wherein, analogue data entity is built-in with asynchronous thread, asynchronous thread, for when authentic data entity corresponding with analogue data entity is accessed, the content of authentic data entity is loaded into analogue data entity by the content for obtaining authentic data entity;When there is the calling for being directed to analogue data entity, the content of the whether loaded authentic data entity of analogue data entity is judged;If not, the step of returning to the content for judging the whether loaded authentic data entity of analogue data entity;If so, analogue data entity is returned for calling.In addition, the embodiment of the present application also provides a kind of devices for accessing data entity.

Description

A kind of method and device accessing data entity
Technical field
This application involves computer application field, in particular to a kind of method and device for accessing data entity.
Background technique
Data entity is the set of data element, can be managed by data storage or be obtained by calculating.Example Such as, the data line in traditional relational can be understood as a data entity.
In general, can exist in the higher system of complexity largely to the access of data entity.And not to data entity With between access, it is understood that there may be preposition dependence, i.e., the operation of one access, which possibly relies on to obtain another, is visited If cannot get another and access data entity be accessed run-time error will occur for the data entity asked.Therefore, in order to Run-time error is avoided, is generally accessed at present using complete serial manner to data entity.
But access only with serial manner to data entity, overall access time be equal to all access when Between summation, the operational efficiency of system is very low.
Summary of the invention
In view of this, a kind of method and device for being designed to provide access data entity of the application improves system to realize The purpose for operational efficiency of uniting.
In the first aspect of the embodiment of the present application, a kind of method for accessing data entity is provided, for example, this method can With include: in response to receiving multiple access requests to data entity, for the access request return analogue data entity, And it is based on the multiple access request, the concurrent access to the corresponding authentic data entity of the analogue data entity is executed, Wherein, the analogue data entity is built-in with asynchronous thread, the asynchronous thread, for real with the analogue data when being accessed When the corresponding authentic data entity of body, the content of the authentic data entity is obtained, the content of the authentic data entity is carried Enter the analogue data entity;When there is the calling for being directed to the analogue data entity, judge that the analogue data entity is The content of no loaded authentic data entity;If not, judging the whether loaded real number of analogue data entity back to described Factually the step of content of body;If so, the analogue data entity is returned for calling.
In the second aspect of the embodiment of the present application, a kind of device for accessing data entity is provided, for example, the device can To include: receiving unit, for being returned for the access request in response to receiving multiple access requests to data entity Analogue data entity and it is based on the multiple access request, executed real to the analogue data entity corresponding authentic data The concurrent access of body, wherein the analogue data entity is built-in with asynchronous thread, the asynchronous thread, for when be accessed with When the corresponding authentic data entity of the analogue data entity, the content of the authentic data entity is obtained, by the real number Factually the content of body is loaded into the analogue data entity;Judging unit, for when in the presence of the tune for the analogue data entity Used time judges the content of the whether loaded authentic data entity of the analogue data entity;Unit is blocked, if sentenced for described Disconnected unit is determined as no, the execution of judging unit described in retriggered;Return unit, if be determined as the judging unit It is to return for calling by the analogue data entity.
It can be seen that the application has the following beneficial effects:
Since the application returns analogue data entity for the received multiple access requests of institute, and based on the multiple Access request performs the concurrent access to authentic data entity, therefore, for having for the access request of preposition dependence, sends out Run-time error will not be occurred to the calling of the analogue data entity returned out, be also not loaded with authentic data in analogue data entity When physical contents, the content of authentic data entity can be waited with to be called, multiple access requests without preposition dependence are come It says, the concurrent access to authentic data entity corresponding with analogue data entity can be executed, so as to reduce overall access Time improves running efficiency of system.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of method flow schematic diagram for accessing data entity provided by the embodiments of the present application;
Fig. 2 be the invention relates to proxy mode schematic diagram;
Fig. 3 is a kind of one of apparatus structure schematic diagram for accessing data entity provided by the embodiments of the present application;
Fig. 4 is the two of a kind of apparatus structure schematic diagram for accessing data entity provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
In order to improve running efficiency of system by way of concurrent access data entity, applicants have discovered that, it is connecing When receiving multiple access requests to data entity, analogue data entity corresponding with access request can be fictionalized, returns to mould Quasi- data entity, and it is based on the multiple access request, it executes to authentic data entity corresponding with analogue data entity Concurrent access.Wherein, the analogue data entity can be built-in with asynchronous thread, and asynchronous thread can be used for be accessed and institute When stating the corresponding authentic data entity of analogue data entity, the content of the authentic data entity is obtained in an asynchronous manner, it will be true The content of correction data entity is loaded into the analogue data entity.It, can be with when there is the calling for being directed to the analogue data entity Judged that blocking is called, if carried by the content circulation that judgement analogue data entity is also not loaded with authentic data entity Enter, analogue data entity can be returned for calling.Therefore, it for having for the access request of preposition dependence, issues to Run-time error will not occur for the calling of the analogue data entity of return, also be not loaded in authentic data entity in analogue data entity Rong Shi can wait the content of authentic data entity with to be called, for multiple access without preposition dependence by looping to determine For request, the concurrent access to authentic data entity corresponding with analogue data entity can be executed, it is total so as to reduce Body access time improves running efficiency of system.
Based on above-mentioned analysis, the embodiment of the present application provides a kind of method for accessing data entity.It is this Shen referring to Fig. 1 Please embodiment provide access data entity method flow schematic diagram.As shown in Figure 1, the embodiment may include:
S110, in response to receiving multiple access requests to data entity, for the access request return simulation number Factually body and be based on the multiple access request, execute to the corresponding authentic data entity of the analogue data entity and Row access, wherein the analogue data entity is built-in with asynchronous thread;
For example, the real-time dynamic generation pair of the access request can be directed to when receiving the access request to data entity The analogue data entity answered.Wherein, the executable object that the analogue data entity can generate for instantiation, it is executable at this Can be built-in in object asynchronous thread, setting Attribute domain corresponding with authentic data entity (for example, field, parameter etc.), And the code being automatically added in object for realizing following steps S120~S150 can also can be performed at this, so that institute is in need It calls the program of the analogue data entity before realizing to the calling of the analogue data entity, authentic data entity can be waited Content loading.
For example, proxy mode can be used in the embodiment of the present application.Such as, cglib(Code can be used in Java Generation Library, class generate library) realize proxy mode.In proxy mode, as shown in Fig. 2, agent object 210 with Commission object 220 has a same interface 230, and agent object, which is mainly responsible for, pre-processes message, filter message, disappearing for commission object Breath is transmitted to commission object and post-processing message etc..There are incidence relation, agencies couple between agent object and commission object As itself not realizing service really, but specific service is provided by calling the correlation technique of commission object.Therefore, exist In the embodiment of the present application, proxy mode can be used, from asynchronous operation thread pool, automatically generate agent object, by agency couple As receiving multiple access requests to data entity.Wherein, a corresponding access request, can produce an agent object.By Hold the reference to commission object in agent object, therefore, when agent object 210 receives the access request to data entity When, can in real time dynamic generation agent object Type Concretization generate executable object (that is, analogue data entity), return with It the corresponding analogue data entity of the access request and calls and the associated execution pair of commission object 220 of the agent object The concurrent access of the corresponding authentic data entity of the analogue data entity.For example, following step S120~step S150 generation Code can be agent object and automatically generate and analogue data entity be added.In this implementation, it is built in analogue data reality The asynchronous thread of body can be used for timing to the commission object 220 and request authentic data entity, when the commission object 220 When authentic data entity is accessed, the content of its authentic data entity being accessed is obtained from the commission object 220.
S120, when authentic data entity corresponding with the analogue data entity is accessed, the asynchronous thread obtains The content of the authentic data entity is loaded into the analogue data entity by the content of the authentic data entity;
For example, can be that authentic data is real by the specific implementation that the content of authentic data entity is loaded into analogue data entity The value of the Attribute domain of body copies to the corresponding Attribute domain of analogue data entity.
It is understood that the operation of analogue data entity is returned, it is real with to the corresponding authentic data of analogue data entity The operation of body access, can be the operation executed parallel.The operation that step S120 asynchronous thread obtains authentic data entity can be with It is the operation with following step S130~step S150 parallel.
S130, when exist be directed to the analogue data entity calling when, judge whether the analogue data entity has carried Enter the content of authentic data entity;
Judge for the ease of the content to the whether loaded authentic data entity of analogue data entity, the application is implemented Example is also provided with flag bit, and the flag bit can be used for identifying the whether loaded authentic data of the analogue data entity The content of entity;The asynchronous thread can be also used for being updated the flag bit;Correspondingly, number is simulated in the judgement The factually content of the whether loaded authentic data entity of body, can be judged according to the flag bit.For example, the flag bit It can be initialized as false, when the content of the loaded authentic data entity of the analogue data entity, the asynchronous thread can The flag bit is updated to true.
In view of it is certain it is possible in special circumstances, asynchronous thread built in certain analogue data entities may always without Method gets authentic data entity, and in order not to block other access for a long time, the asynchronous thread be can be also used in preset duration When authentic data entity inside has not been obtained, the flag bit is updated to have obtained state corresponding to authentic data entity, for example, Flag bit is updated to true, so that system can complete operation within the time of permission.
S140, if not, back to the content for judging the whether loaded authentic data entity of analogue data entity Step;
S150, if so, the analogue data entity is returned for calling.
For example, the code that an agent object type is obj1 can be as follows:
// above-mentioned code indicates: when there is the calling for being directed to analogue data entity Obj1, into function getField1, In function getField1, it is that vacation loops to determine by determination flag position asyncOver, passes through determination flag position AsyncOver is very, to determine the content of the loaded authentic data entity of analogue data entity, exits circulation, is returned loaded true The Attribute domain field1 of the content of correction data entity is for calling.
By this section of code as it can be seen that the analogue data entity can be agent object type (such as above in code Obj1) the executable object that instantiation generates, returning to analogue data entity for access request is actually after returning to instantiation The executable object generated.After asynchronous thread gets authentic data entity, the content of authentic data entity can be loaded into This, i.e., can be performed the respective attributes in object by the respective attributes domain (such as field1 in code above) in the executable object The value in domain is set as authentic data, thus when exist be directed to analogue data entity calling when can return analogue data entity with For calling, calls and restore normal completely.
As it can be seen that using method provided by the embodiments of the present application, due to returning analogue data entity for access request, with And concurrent access to authentic data entity is performed, therefore, for having for the access request of preposition dependence, issue to having returned Run-time error will not occur for the calling of the analogue data entity returned, also be not loaded with authentic data physical contents in analogue data entity When, the content of authentic data entity can be waited with to be called, for multiple access requests without preposition dependence, can be held Concurrent access of the row to authentic data entity corresponding with analogue data entity improves so as to reduce overall access time Running efficiency of system.For example, in a kind of possible situation, have the access request of preposition dependence call analogue data entity it Before, the content of authentic data entity is loaded into analogue data entity by the asynchronous thread built in analogue data entity, then before having Analogue data entity directly can be successfully called when setting the access request calling analogue data entity of dependence, is obtained therein real The content of data entity, at this point, theoretically, the access request of all pairs of data entities all concurrently executes, entire access request Overall time it is most short.
In the following, being illustrated in conjunction with the possible application scenarios of the embodiment of the present application one.For example, the embodiment of the present application can answer For in the application scenarios of page rendering.It in the application scenarios of page rendering, is usually designed according to three tiers model: performance Layer, i.e. page presentation layer, inside generally use the rendering engines such as JSP, velocity or freemarker and will render needed for Data are rendered, the visible page of presentation user, such as html page;Business Logic calls service logic to from the page Access request carry out operation, generate to the access request of data entity, call service logic to the data entity being accessed into Row operation obtains rendering required data, and data needed for rendering are submitted to presentation layer and are rendered;Data access layer is rung The access request for coping with data entity such as is added for database, deletes, modifying, updating, searching at the access operations.
In this application scenarios, any operation in the page (such as html page) of such as browsing type can accordingly be generated Access request from the page.The embodiment of the present application can after Business Logic receives the access request from the page, Business Logic calls service logic to carry out operation to the access request from the page, generates to identical or different data entity Multiple access requests return to analogue data entity for the access request, and execute in data access layer to analogue data The concurrent access of the corresponding authentic data entity of entity.It is understood that due to the access request to data entity be it is multiple, Analogue data entity corresponding with the access request of data entity may be multiple, real number corresponding to analogue data entity Factually the access of body may be multiple, and therefore, concurrent access described in the embodiment of the present application is referred to analogue data entity Parallel execution between multiple access of corresponding authentic data entity.When the loaded authentic data of arbitrarily simulate data entity is real When the content of body, service logic can be called real to the authentic data that institute's arbitrarily simulate data entity is loaded in Business Logic The content of body carries out operation, and data needed for the page rendering are submitted to the page by data needed for obtaining page rendering Face is rendered.
Using the embodiment, for there is the access of preposition dependence, can issue to the analogue data entity returned Calling authentic data entity can be waited with to be called when analogue data entity is also not loaded with authentic data entity, because This, will not occur run-time error, can execute parallel between the access of no preposition dependence.With the prior art in page rendering In the process, serial execute compares to the mode of the access of data entity completely, it is possible to reduce to the overall access of data entity Time obtains the data entity for needing to access as early as possible, data needed for obtaining page rendering as early as possible, to reduce full page The duration is rendered, page response speed is accelerated, improves user experience and application performance.
It is understood that the adaptable scene of the embodiment of the present application is not limited only to the application scenarios of page rendering, also It can be applied to other scenes.The embodiment of the present application is not limited by programming language and system environments, in any programming language With can be implemented under system environments.It is, for example, possible to use the exploitation of JAVA programming language, deployed environment can be Linux system.
Correspondingly with the method for above-mentioned access data entity, the embodiment of the present application also provides a kind of access data entities Device.For example, with reference to 3, for one of the structural schematic diagram of device of access data entity provided by the embodiments of the present application.Such as Fig. 3 It is shown, the apparatus may include:
Receiving unit 310 can be used in response to receiving multiple access requests to data entity, for the access Request returns to analogue data entity and is based on the multiple access request, executes corresponding to the analogue data entity true The concurrent access of correction data entity, wherein the analogue data entity is built-in with asynchronous thread, the asynchronous thread, Ke Yiyong In when authentic data entity corresponding with the analogue data entity is accessed, the content of the authentic data entity is obtained, The content of the authentic data entity is loaded into the analogue data entity;
Judging unit 320 can be used for judging the simulation number when there is the calling for being directed to the analogue data entity The factually content of the whether loaded authentic data entity of body;
Unit 330 is blocked, is determined as no if can be used for the judging unit, judging unit described in retriggered is held Row;
Return unit 340, if can be used for the judging unit and be determined as be, by the analogue data entity return with For calling.
It is real to return to analogue data since receiving unit 310 is directed to access request using device provided by the embodiments of the present application The concurrent access of body and execution to authentic data entity utilizes the asynchronous thread built in analogue data entity to obtain authentic data Entity, judging unit 320 judge whether analogue data entity is loaded really when there is the calling for being directed to analogue data entity Therefore for having for the access request of preposition dependence, authentic data entity can not be also accessed in the content of data entity When, determine that being also not loaded with return judgment step blocks calling by blocking unit 330, when authentic data entity is accessed, Loaded return analogue data entity is determined for calling by return unit 340, therefore, run-time error will not occur, for For multiple access requests without preposition dependence, it can execute to the parallel of authentic data entity corresponding with analogue data entity Access improves running efficiency of system so as to reduce overall access time.
In a kind of possible implementation of the embodiment of the present application, proxy mode can be used.For example, as shown in figure 4, connecing Receiving unit 310 may include: to act on behalf of generating subunit 311, for generating agent object;Receiving subelement 312 is acted on behalf of, for working as When agent object receives multiple access requests to data entity, it is real to return to analogue data corresponding with the access request Body and calling and the associated commission object of the agent object, execute to the corresponding authentic data of the analogue data entity The concurrent access of entity;The asynchronous thread can be used for timing to the commission object requests authentic data entity, when described When object accesses being entrusted to arrive authentic data entity, its authentic data entity for being accessed of object acquisition is entrusted from described.
Judge for the ease of the content to the whether loaded authentic data entity of analogue data entity, the application is implemented Example is also provided with flag bit, and the flag bit can be used for identifying the whether loaded authentic data of the analogue data entity The content of entity;The asynchronous thread can be also used for being updated the flag bit;The judging unit 320, Ke Yiyong In the content for judging the whether loaded authentic data entity of analogue data entity according to the flag bit.
For example, the embodiment of the present application can be applied in the application scenarios of page rendering.In the application scenarios of page rendering In, as shown in figure 4, the embodiment of the present application can also include: page request receiving unit 350, can be used for receiving from the page Access request, call service logic to carry out operation to the access request from the page, generate described to data entity Multiple access requests;Data entity arithmetic element 360 can be used for when the loaded authentic data entity of arbitrarily simulate data entity Content when, call the content of the service logic authentic data entity loaded to institute's arbitrarily simulate data entity to carry out operation, Data needed for obtaining page rendering;Unit 370 is submitted, can be used for submitting to data needed for the page rendering described The page is rendered.
Using the embodiment, for having for the access of preposition dependence, can issue to the analogue data entity returned Calling, wait authentic data entity, run-time error will not occur, and can hold parallel between the access without preposition dependence Row, with the prior art during page rendering, serial execute compares to the mode of the access of data entity completely, can subtract Few overall access time to data entity, obtains the data entity for needing to access as early as possible, obtains needed for page rendering as early as possible Data accelerate page corresponding speed to reduce the rendering duration of full page, improve user experience and application Energy.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment of the application or embodiment Method described in part.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, service Device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, top set Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, including any of the above system or equipment Distributed computing environment etc..
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (9)

1. a kind of method for accessing data entity characterized by comprising
In response to receiving multiple access requests to data entity, for the access request return analogue data entity, with And it is based on the multiple access request, the concurrent access to the corresponding authentic data entity of the analogue data entity is executed, In, the analogue data entity is built-in with asynchronous thread, and the asynchronous thread is accessed and the analogue data entity for working as When corresponding authentic data entity, the content of the authentic data entity is obtained, the content of the authentic data entity is loaded into The analogue data entity;
When there is the calling for being directed to the analogue data entity, the whether loaded authentic data of the analogue data entity is judged The content of entity;
If not, the step of returning to the content for judging the whether loaded authentic data entity of analogue data entity;
If so, the analogue data entity is returned for calling.
2. the method according to claim 1, wherein multiple access in response to receiving to data entity Request returns to analogue data entity and is based on the multiple access request, execute to the mould for the access request The specific implementation of the concurrent access of the quasi- corresponding authentic data entity of data entity are as follows: generate agent object;When agent object connects When receiving multiple access requests to data entity, returns to analogue data entity corresponding with the access request and call With the associated commission object of the agent object, executed based on the multiple access request corresponding to the analogue data entity The concurrent access of authentic data entity;
The asynchronous thread, for timing to the commission object requests authentic data entity, when the commission object accesses arrive When authentic data entity, from its authentic data entity for being accessed of the commission object acquisition.
3. the flag bit is for identifying institute the method according to claim 1, wherein being additionally provided with flag bit State the content of the whether loaded authentic data entity of analogue data entity;
The asynchronous thread is also used to be updated the flag bit;
The content for judging the whether loaded authentic data entity of analogue data entity, is sentenced with specific reference to the flag bit It is disconnected.
4. according to the method described in claim 3, it is characterized in that, the asynchronous thread, is also used to not obtain in preset duration When taking authentic data entity, the flag bit is updated to have obtained state corresponding to authentic data entity.
5. calling industry the method according to claim 1, wherein further including receiving the access request from the page Logic of being engaged in carries out operation to the access request from the page, generates multiple access requests to data entity;
When the content of the loaded authentic data entity of arbitrarily simulate data entity, call service logic to institute's arbitrarily simulate data The content of the loaded authentic data entity of entity carries out operation, data needed for obtaining page rendering;
Data needed for the page rendering are submitted to the page to render.
6. a kind of device for accessing data entity characterized by comprising
Receiving unit, for returning to mould for the access request in response to receiving multiple access requests to data entity Intend data entity and be based on the multiple access request, executes to the corresponding authentic data entity of the analogue data entity Concurrent access, wherein the analogue data entity is built-in with asynchronous thread, the asynchronous thread, for when being accessed and institute When stating the corresponding authentic data entity of analogue data entity, the content of the authentic data entity is obtained, by the authentic data The content of entity is loaded into the analogue data entity;
Judging unit, for whether judging the analogue data entity when there is the calling for being directed to the analogue data entity The content of loaded authentic data entity;
Unit is blocked, if being determined as no, the execution of judging unit described in retriggered for the judging unit;
Return unit, if being determined as the judging unit is to return for calling by the analogue data entity.
7. device according to claim 6, which is characterized in that the receiving unit includes: to act on behalf of generating subunit, is used for Generate agent object;Receiving subelement being acted on behalf of, when for receiving multiple access requests to data entity when agent object, being returned Analogue data entity corresponding with the access request and calling and the associated commission object of the agent object are returned, is based on The multiple access request executes the concurrent access to the corresponding authentic data entity of the analogue data entity;
The asynchronous thread, for timing to the commission object requests authentic data entity, when the commission object accesses arrive When authentic data entity, from its authentic data entity for being accessed of the commission object acquisition.
8. device according to claim 6, which is characterized in that be additionally provided with flag bit, the flag bit is for identifying institute State the content of the whether loaded authentic data entity of analogue data entity;
The asynchronous thread is also used to be updated the flag bit;
The judging unit, for being judged in the whether loaded authentic data entity of analogue data entity according to the flag bit Hold.
9. device according to claim 6, which is characterized in that further include:
Page request receiving unit calls service logic to described from the page for receiving the access request from the page Access request carries out operation, generates multiple access requests to data entity;
Data entity arithmetic element, for calling industry when the content of the loaded authentic data entity of arbitrarily simulate data entity The content of logic of the being engaged in authentic data entity loaded to institute's arbitrarily simulate data entity carries out operation, obtains needed for page rendering Data;
Unit is submitted, is rendered for data needed for the page rendering to be submitted to the page.
CN201410153312.6A 2014-04-16 2014-04-16 A kind of method and device accessing data entity Active CN105095198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410153312.6A CN105095198B (en) 2014-04-16 2014-04-16 A kind of method and device accessing data entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410153312.6A CN105095198B (en) 2014-04-16 2014-04-16 A kind of method and device accessing data entity

Publications (2)

Publication Number Publication Date
CN105095198A CN105095198A (en) 2015-11-25
CN105095198B true CN105095198B (en) 2018-12-04

Family

ID=54575669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410153312.6A Active CN105095198B (en) 2014-04-16 2014-04-16 A kind of method and device accessing data entity

Country Status (1)

Country Link
CN (1) CN105095198B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111435384B (en) * 2019-01-14 2022-08-19 阿里巴巴集团控股有限公司 Data security processing and data tracing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265489A (en) * 1999-03-01 2000-09-06 惠普公司 Management program of JAVA application program for embedded system
CN1179285C (en) * 1998-12-24 2004-12-08 计算机合伙思维公司 Computer system for dynamic command expansion in smart cells
CN100543742C (en) * 2006-06-30 2009-09-23 华为技术有限公司 Method and device for invoking data using buffer technology in enterprise application framework
CN103164194A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Method and device for presenting and collecting web data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE501433C2 (en) * 1993-06-23 1995-02-13 Ellemtel Utvecklings Ab Ways to obtain data access in a primary memory-based database
CN1960252A (en) * 2006-06-30 2007-05-09 南京联创科技股份有限公司 Multidimension object access control method based on roles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179285C (en) * 1998-12-24 2004-12-08 计算机合伙思维公司 Computer system for dynamic command expansion in smart cells
CN1265489A (en) * 1999-03-01 2000-09-06 惠普公司 Management program of JAVA application program for embedded system
CN100543742C (en) * 2006-06-30 2009-09-23 华为技术有限公司 Method and device for invoking data using buffer technology in enterprise application framework
CN103164194A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Method and device for presenting and collecting web data

Also Published As

Publication number Publication date
CN105095198A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US12211030B2 (en) Relaxed fraud detection for transactions using virtual transaction cards
CN110058922B (en) A method and apparatus for extracting metadata of machine learning tasks
US7519527B2 (en) Method for a database workload simulator
JP2017514218A (en) Running third-party applications
US11789846B2 (en) Method and system for using stacktrace signatures for bug triaging in a microservice architecture
CN110909229A (en) Webpage data acquisition and storage system based on simulated browser access
KR102161137B1 (en) Method and system for game data collection
Agarwal et al. Azurebench: Benchmarking the storage services of the azure cloud platform
US9348671B1 (en) Monitoring application loading
US20180173744A1 (en) Determining integrity of database workload transactions
WO2023165271A1 (en) Knowledge graph construction and graph calculation
CN105095198B (en) A kind of method and device accessing data entity
US8671396B2 (en) Dynamic interface reduction for software model checking
Ilin et al. Performance analysis of software with a variant NoSQL data schemes
Jiang et al. A preliminary analysis and case study of feature-based software customization
Fu et al. Malicious attacks on the web and crawling of information data by Python technology
CN111160403A (en) Method and device for multiplexing and discovering API (application program interface)
CN111159714A (en) Method and system for verifying credibility of main body in operation in access control
CN108848183A (en) The login method and device of analog subscriber
Tsaousi Elasticity of elasticsearch
CN117992346A (en) Code analysis method, device, equipment and medium
CN118761410A (en) Sensitive word filtering method and device, storage medium and electronic device
Würsten et al. Filecoin Consensus
CN117331599A (en) An application publishing method and device
CN114546986A (en) Database schema determination method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant