CN102737056B - page data processing method and device - Google Patents

page data processing method and device Download PDF

Info

Publication number
CN102737056B
CN102737056B CN201110092615.8A CN201110092615A CN102737056B CN 102737056 B CN102737056 B CN 102737056B CN 201110092615 A CN201110092615 A CN 201110092615A CN 102737056 B CN102737056 B CN 102737056B
Authority
CN
China
Prior art keywords
page
session request
page data
container
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.)
Active
Application number
CN201110092615.8A
Other languages
Chinese (zh)
Other versions
CN102737056A (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.)
Shenzhen Kingdee Tianyanyun Computing Co Ltd
Original Assignee
Shenzhen Kingdee Middleware 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 Shenzhen Kingdee Middleware Co ltd filed Critical Shenzhen Kingdee Middleware Co ltd
Priority to CN201110092615.8A priority Critical patent/CN102737056B/en
Publication of CN102737056A publication Critical patent/CN102737056A/en
Application granted granted Critical
Publication of CN102737056B publication Critical patent/CN102737056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A kind of page data processing method, comprises the following steps: receive page session request; Carry out data processing according to described page session request, and page data data processing obtained is stored in container; Judge whether page data preservation duration in a reservoir corresponding to described page session request reaches threshold value, if so, then removes described page data; Described threshold value is less than the page session cycle, and is greater than RQ cycle.Above-mentioned page data processing method and device, by judging in container, whether page data preservation duration reaches the storage that threshold value controls page data in container, the page data between page session request can be had access in a reservoir, and preserve duration reach be threshold value time remove this page data, even if also do not need extra consumption of natural resource when large-scale consumer is accessed.

Description

Page data processing method and device
[technical field]
The present invention relates to data processing technique, particularly relate to a kind of page data processing method and system.
[background technology]
In Web application, usually occur repeatedly initiating data-transfer requests, or carry out the situation of data interaction with server.Such as, when user opens a page, initiate request to server, carry out the structure of page framework, and initiate second time request to obtain the concrete data in the page.
RQ cycle refers to initiates a page session request to backstage and the time met with a response by interactive window.The session cycle refers to interactive window from the time being opened to closedown.Multiple request will be produced in a session.User is undertaken in the server of data interaction by the page, and page data is stored in corresponding storage medium, namely in container.If the preservation duration of container is RQ cycle, then complete and once ask namely to remove the data in container, this cannot carry out sharing of data by causing between different request, and it will be very loaded down with trivial details for asking the access process of data in last time request next time, consume larger computational resource; If the preservation duration of container is the session cycle, then after conversation end just by the data dump in container, the time that data are stored in container is longer, and under the access of large-scale consumer, the resource consumption such as internal memory is huge.
[summary of the invention]
Based on this, be necessary to provide a kind of page data processing method reducing resource consumption.
In addition, there is a need to provide a kind of page data disposal system reducing resource consumption.
A kind of page data processing method, comprises the following steps:
Receive page session request;
Carry out data processing according to described page session request, and page data data processing obtained is stored in container;
Judge whether page data preservation duration in a reservoir corresponding to described page session request reaches threshold value, if so, then removes described page data;
Described threshold value is less than the page session cycle, and is greater than RQ cycle.
Preferably, described method also comprises:
Receive next page session request;
When the page data preservation duration in a reservoir that described page session request is corresponding does not reach threshold value, obtain page data corresponding to described page session request from container according to described next page session request and carry out data processing and obtain the page data corresponding with described next page session request;
By the page data corresponding with described next page session request stored in container.
Preferably, also comprise before the step of described reception page session request:
Newly-built page session and container;
Carry out data processing according to newly-built page session, and page data data processing obtained is stored in container.
Preferably, also comprise:
Described page session closes described container after closing.
Preferably, also comprise:
Again receive page session request;
The page data relevant to the page session request again received preservation duration is in a reservoir reset.
A kind of page data treating apparatus, at least comprises:
Receiver module, for receiving page session request;
Processing module, for carrying out data processing according to described page session request;
Container, with preserving the page data that obtains of described data processing, and judges whether page data preservation duration in a reservoir corresponding to described page session request reaches threshold value, if so, then removes described page data;
Described threshold value is less than the page session cycle, and is greater than RQ cycle.
Preferably, described receiver module is also for receiving next page session request;
When described processing module does not also reach threshold value for the page data preservation duration in a reservoir corresponding when described page session request, obtain page data corresponding to described page session request from container according to described next page session request and carry out data processing and obtain the page data corresponding with described next page session request;
Described container is also for preserving the page data corresponding with described next page session request.
Preferably, also comprise:
Newly-built module, for newly-built page session and container;
Described processing module also responds after carrying out data processing according to newly-built page session, and page data data processing obtained is stored in container.
Preferably, after described page session is closed, described container closure.
Preferably, the page data relevant to the page session request again received also for again receiving page session request, and is preserved duration and is reset by described container.
Above-mentioned page data processing method and device, by judging in container, whether page data preservation duration reaches the storage that threshold value controls page data in container, the page data between page session request can be had access in a reservoir, and preserve duration reach be threshold value time remove this page data, even if also do not need extra consumption of natural resource when large-scale consumer is accessed.
Threshold value is defined in and is greater than RQ cycle and is less than the session cycle by above-mentioned page processing method and device, achieve across request between page data share, improve system performance, in the process that page session request is responded, may have access to the page data of previous page session request, significantly reduce and the communication cost in user interaction process.
[accompanying drawing explanation]
Fig. 1 is the process flow diagram of the page data processing method in first embodiment;
Fig. 2 is the process flow diagram of page data processing method in second embodiment;
Fig. 3 is the process flow diagram of page data processing method in the 3rd embodiment;
Fig. 4 is the structural representation of page data treating apparatus in the 4th embodiment.
[embodiment]
Fig. 1 shows the method flow of the page data process in first embodiment, comprises the following steps:
In step S101, receive page session request.In the present embodiment, user chooses the control on the page, initiates page session request to backstage.Such as, user clicks " interpolation " button in page listings, submits page session request to backstage.Page session refers to all reciprocal processes being opened to the down periods from an interactive window.
In another embodiment, as shown in Figure 2, before the step receiving page session request, further comprises following steps:
Step S201, newly-built page session and container.In the present embodiment, user opens interactive window, now, opens the page session with backstage.Along with user opens interactive window, because the container of page session does not exist, need newly-built container.Such as, have issued the request of newly-built page session when opening interactive window, backstage, according to the page data of the newly-built page of the acquisition request of newly-built page session, creates container.
Step S203, carries out data processing according to newly-built page session, and page data data processing obtained is stored in container.In the present embodiment, according to the request of newly-built page session, obtain page data, by page data stored in container, and to the interactive window back page data of user, to show the newly-built page.
In step s 103, carry out data processing according to page session request, and page data data processing obtained is stored in container.In the present embodiment, the page session request that backstage is submitted to according to user responds, such as, during the page session request submitted to when receiving user and clicking " interpolation " button, extract the target pages frame information added, be loaded into the target pages added, and by page framework information stored in container.
A series of processing procedures such as the data handling procedure page session request referred to as responding user is searched the data in backstage, extraction, wherein, the data in backstage can be the data that user submits to, also can be the data of storage inside.Page data is the information produced in conversation procedure, and the page data that last page session request produces is normal to be shared with page session request next time, and in data handling procedure for page session request next time.Such as, if page data is page framework information, then this page data is the gauge outfit of target pages, the columns of form display and the size of form, for constructing the framework of target pages.Container, for storing data, be act as the mutual intermediary on the page and backstage, is associated together by multiple page by storing page data.
In step S105, judge whether page data preservation duration in a reservoir corresponding to page session request reaches threshold value, if so, then enters in step S107, if not, then terminates.In the present embodiment, threshold value is less than the page session cycle, and is greater than RQ cycle.For guarantee can be shared across the data between request, when upper once page session request occurs, still can find the page data of last page session request in a reservoir, the preservation duration of container is set between RQ cycle and page session cycle.RQ cycle refers to initiates a page session request to backstage and the time met with a response by interactive window.The session cycle refers to interactive window from the time being opened to closedown.Such as, in the process of practical application, RQ cycle is usually 30 seconds, and the session cycle is 30 minutes, threshold value can be set to 2 minutes.Arranging of this threshold value can be arranged as required by user, distributes longer preservation duration for complex page, to ensure sharing of page data in container.
In step s 107, page data is removed.In the present embodiment, when the page data for the arbitrary page session request be stored in container, when reaching the threshold value of setting when saved, this page data is deleted from container.
A page session often produces multiple page session request, and above-mentioned page data processing method lists a page session request from the process receiving removing, receives page session request all carry out according to said process for each.
In above-mentioned page data processing method, after page session is closed, by closing containers.In the present embodiment, page session terminates, and user closes interactive window, and now, container is also closed.
In other embodiment, as shown in Figure 3, above-mentioned page data processing method, when carrying out shared to the page data of page session request, comprises the following steps:
In step S301, receive next page session request.
In step S303, when the page data preservation duration in a reservoir that page session request is corresponding does not reach threshold value, obtain page data corresponding to page session request from container according to next page session request and carry out data processing and obtain the page data corresponding with next page session request.In the present embodiment, data processing is carried out according to next page session request in backstage, such as, during the page session request submitted to when receiving user and clicking " data stuffing " button, need to obtain user and click " interpolation " button and the target pages frame information that produces, to search the data of filling according to the gauge outfit of target pages in target pages frame information, go to be filled in target pages.Page data corresponding to previous page session request does not reach threshold value due to preservation duration in a reservoir, make next page session request can get the page data corresponding with previous page session request from container when carrying out data processing, the page data achieved between page session request is shared.
In step S305, be there is container in the page data corresponding with next page session request.
In addition, further comprises in above-mentioned page data processing method the page data relevant to next page session request preservation duration is in a reservoir reset.In the present embodiment, when receiving next page session request, for page session data relevant to next page session request in container, can reactivate it and preserve duration, the preservation duration by page data resets, and is rearranged into threshold value.
Fig. 4 shows the detailed construction of page data treating apparatus in the 4th embodiment, and this page data treating apparatus comprises receiver module 10, processing module 20 and container 30.
Receiver module 10, for receiving page session request.In the present embodiment, user chooses the control on the page, and initiate page session request, such as, user clicks " interpolation " button in page listings, and submit page session request to, receiver module 10 receives page session request.Page session refers to all reciprocal processes being opened to the down periods from an interactive window.
Processing module 20, for carrying out data processing according to page session request.In the present embodiment, the page session request that processing module 20 is submitted to according to user responds, such as, when receiver module 10 receive user click " interpolation " button and submit to page session request time, processing module 20 extracts the target pages frame information added, so that the interactive window of user is loaded into the target pages added, and by page framework information stored in container 30.
A series of processing procedures such as the data handling procedure page session request referred to as responding user of processing module 20 is searched data, extraction.Page data is the information produced in conversation procedure, and the page data that last page session request produces is normal to be shared with page session request next time, and in data handling procedure for page session request next time.Such as, if page data is page framework information, then this page data is the gauge outfit of target pages, the columns of form display and the size of form, for constructing the framework of target pages.
Container 30, for preserving the page data that data processing obtains, and judging that page data corresponding to each page session request is preserved duration and whether reached threshold value, if so, then removing page data.In the present embodiment, container 30, for storing data, be act as the mutual intermediary on the page and backstage, is associated together by multiple page by storing page data.
Threshold value is less than the page session cycle, and is greater than RQ cycle.For guarantee can be shared across the data between request, when upper once page session request occurs, still can find the page data of last page session request in a reservoir, container 30 is arranged preserves duration between RQ cycle and page session cycle.RQ cycle refers to initiates a page session request to backstage and the time met with a response by interactive window.The session cycle refers to interactive window from the time being opened to closedown.Such as, in the process of practical application, RQ cycle is usually 30 seconds, and the session cycle is 30 minutes, threshold value can be set to 2 minutes.Arranging of this threshold value can be arranged as required by user, distributes longer preservation duration for complex page, to ensure sharing of page data in container.
When the page data for the arbitrary page session request be stored in container 30, when reaching the threshold value of setting when saved, this page data is deleted by container 30 from container.
In another embodiment, above-mentioned page data treating apparatus further comprises newly-built module.Newly-built module, for newly-built page session and container.In the present embodiment, user opens interactive window, and now, newly-built module opens page session, and creates container 30.Such as, have issued the request of newly-built page session when opening interactive window, newly-built module, according to the page data of the newly-built page of the acquisition request of newly-built page session, creates container 30.
Processing module 20 also responds after carrying out data processing according to newly-built page session, and page data data processing obtained is stored in container 30.In the present embodiment, processing module 20, according to the request of newly-built page session, obtains page data, by page data stored in container 30, and to the interactive window back page data of user, to show the newly-built page.
In above-mentioned page data treating apparatus, after page session is closed, container 30 cuts out.In the present embodiment, container 30 terminates at page session, closes when user closes interactive space.
In other embodiment, above-mentioned page data treating apparatus is that the page data realized between page session request is shared, and receiver module 10 is also for receiving next page session request.
When processing module 20 does not also reach threshold value for the page data preservation duration in a reservoir corresponding when page session request, obtain page data corresponding to page session request from container according to next page session request and carry out data processing and obtain the page data corresponding with next page session request.In the present embodiment, processing module 20 carries out data processing according to next page session request, such as, during the page session request submitted to when receiving user and clicking " data stuffing " button, the target pages frame information that processing module 20 needs to obtain user's click " interpolation " button and produces, to search the data of filling according to the gauge outfit of target pages in target pages frame information, go to be filled in target pages.
Container 30 is also for preserving the page data corresponding with next page session request.
In addition, container 30 is also for resetting the page data relevant to next page session request preservation duration in a reservoir.In the present embodiment, when receiving next page session request, for page session data relevant to next page session request in container, can reactivate it and preserve duration, the preservation duration by page data resets, and is rearranged into threshold value.
In above-mentioned page data treating apparatus, interactive window is browser.
Above-mentioned page data treating apparatus carries out the server of data interaction with browser in backstage.
Above-mentioned page data processing method and device are by judging in container, whether page data preservation duration reaches the storage that threshold value controls page data in container, the page data between page session request can be had access in a reservoir, and preserve duration reach be threshold value time remove this page data, even if also do not need extra consumption of natural resource when large-scale consumer is accessed.
Threshold value is defined in and is greater than RQ cycle and is less than the session cycle by above-mentioned page processing method and device, achieve across request between page data share, improve system performance, in the process that page session request is responded, may have access to the page data of previous page session request, significantly reduce and the communication cost in user interaction process.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a page data processing method, comprises the following steps:
Receive page session request;
Carry out data processing according to described page session request, and page data data processing obtained is stored in container, described page data is the information produced in conversation procedure;
Judge whether page data preservation duration in a reservoir corresponding to described page session request reaches threshold value, if so, then removes described page data;
Described threshold value is distributed according to page complexity, is less than the page session cycle, and is greater than RQ cycle;
Receive next page session request;
When the page data preservation duration in a reservoir that described page session request is corresponding does not reach threshold value, obtain page data corresponding to described page session request from container according to described next page session request and carry out data processing and obtain the page data corresponding with described next page session request;
By the page data corresponding with described next page session request stored in container.
2. page data processing method according to claim 1, is characterized in that, also comprises before the step of described reception page session request:
Newly-built page session and container;
Carry out data processing according to newly-built page session, and page data data processing obtained is stored in container.
3. page data processing method according to claim 2, is characterized in that, also comprises:
Described page session closes described container after closing.
4. page data processing method according to claim 1, is characterized in that, also comprises:
The page data relevant to next page session request preservation duration is in a reservoir reset.
5. a page data treating apparatus, is characterized in that, at least comprises:
Receiver module, for receiving page session request;
Processing module, for carrying out data processing according to described page session request;
Container, with preserving the page data that obtains of described data processing, and judges whether page data preservation duration in a reservoir corresponding to described page session request reaches threshold value, if so, then removes described page data;
Described threshold value is distributed according to page complexity, is less than the page session cycle, and is greater than RQ cycle, and described page data is the information produced in conversation procedure;
Described receiver module is also for receiving next page session request;
When described processing module does not also reach threshold value for the page data preservation duration in a reservoir corresponding when described page session request, obtain page data corresponding to described page session request from container according to described next page session request and carry out data processing and obtain the page data corresponding with described next page session request;
Described container is also for preserving the page data corresponding with described next page session request.
6. page data treating apparatus according to claim 5, is characterized in that, also comprise:
Newly-built module, for newly-built page session and container;
Described processing module also responds after carrying out data processing according to newly-built page session, and page data data processing obtained is stored in container.
7. page data treating apparatus according to claim 6, is characterized in that, after described page session is closed, and described container closure.
8. page data treating apparatus according to claim 5, is characterized in that, described container also resets for the page data relevant to next page session request is preserved duration.
CN201110092615.8A 2011-04-13 2011-04-13 page data processing method and device Active CN102737056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110092615.8A CN102737056B (en) 2011-04-13 2011-04-13 page data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110092615.8A CN102737056B (en) 2011-04-13 2011-04-13 page data processing method and device

Publications (2)

Publication Number Publication Date
CN102737056A CN102737056A (en) 2012-10-17
CN102737056B true CN102737056B (en) 2015-12-02

Family

ID=46992576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110092615.8A Active CN102737056B (en) 2011-04-13 2011-04-13 page data processing method and device

Country Status (1)

Country Link
CN (1) CN102737056B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
CN101140574A (en) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 Web page content revealing method and customer terminal device
CN101770494A (en) * 2009-01-04 2010-07-07 英业达股份有限公司 Individualized webpage content display system and method thereof
CN101882966A (en) * 2009-05-07 2010-11-10 清流迅(北京)科技有限公司 User request processing system and method for electronic program guide system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140574A (en) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 Web page content revealing method and customer terminal device
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
CN101770494A (en) * 2009-01-04 2010-07-07 英业达股份有限公司 Individualized webpage content display system and method thereof
CN101882966A (en) * 2009-05-07 2010-11-10 清流迅(北京)科技有限公司 User request processing system and method for electronic program guide system

Also Published As

Publication number Publication date
CN102737056A (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN103036899A (en) Method and system of automatic login user account
CN106504432A (en) A kind of express delivery cabinet intelligent prompt method based on WIFI data acquisition technologys
CN109511133A (en) A kind of method and device waking up processing
CN102468989A (en) Method and system for processing network data
CN103177042A (en) Method and device for browsing webpage
US20160006828A1 (en) Embedded network proxy system, terminal device and proxy method
CN107045472A (en) Mobile device information acquisition system
CN102957622A (en) Method, device and system for data processing
CN106686148A (en) Method and system for increasing uploading speed of objects in object storage system
CN114339737B (en) Wireless communication instruction encryption method and related equipment
CN105530673B (en) A kind of method for connecting network and user equipment
CN102737056B (en) page data processing method and device
CN108471612A (en) SIM card falls card restoration methods, device and terminal
CN104143104A (en) Image recognizing method and device, terminal device and server
CN103812679A (en) Mass log statistical analysis system and method
CN104536780A (en) Electronic game resource high-efficiency loading method and system
CN103501247A (en) Method and device for processing high concurrency request
CN104994082B (en) A kind of pictorial information processing method, server and system
CN105653495B (en) Dual processor electronic device and its method of quick turn-on starting
CN103401703A (en) Method, relevant equipment and system for realizing privilege separation
CA2740829A1 (en) System and method of network data access management
CN109993286A (en) The calculation method and Related product of sparse neural network
CN102664908B (en) Data security access model based on cloud computing
CN107341234A (en) Display methods, device and the computer-readable recording medium of the page
CN106453649A (en) File transmission 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
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee after: Shenzhen Kingdee middleware Limited by Share Ltd.

Address before: 518057 Guangdong City, Nanshan District province high tech Zone in the middle of the industrial zone of the sparrow tower M-6 building, floor 1, area 3, second, 4

Patentee before: Shenzhen Kingdee Middleware Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee after: Shenzhen Kingdee tianyanyun computing Co., Ltd.

Address before: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee before: Shenzhen Kingdee middleware Limited by Share Ltd.