CN105404672A - Webpage data storage and operation system and method - Google Patents
Webpage data storage and operation system and method Download PDFInfo
- Publication number
- CN105404672A CN105404672A CN201510801184.6A CN201510801184A CN105404672A CN 105404672 A CN105404672 A CN 105404672A CN 201510801184 A CN201510801184 A CN 201510801184A CN 105404672 A CN105404672 A CN 105404672A
- Authority
- CN
- China
- Prior art keywords
- information
- webpage
- dom
- identifying information
- web 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a webpage data storage and operation system and method. A webpage is represented by a DOM tree structure; the DOM tree structure comprises a plurality of DOM nodes; each DOM node is associated with an object in the webpage; key information of the object is stored in each DOM node, and the key information comprises identification information; the identification information of the object and all other information except the key information is stored in a buffer; a one-to-one correspondence exists between the identification information and all the other information, wherein all the other information comprises an operation code, an operation method and determining whether an operation is collapsed; and only the key information of each object is displayed on the webpage. The system and method provided by the present invention are directed to the mobile internet and improve a webpage loading speed and a webpage rendering speed, enhances page interaction capability and increases page operation smoothness, so that the user has smoother experience when operating a list page and other pages with a relatively large data volume in a mobile client, thereby reducing risks of APP blockage and crash.
Description
Technical field
The present invention relates to web data process field, the system and method for the particularly system and method that stores of a kind of web data and web data operation.
Background technology
Along with the development of mobile Internet, the convenient user of allowing of mobile hand-held device often selects to carry out consumption on network on mobile phone, user obtain that handheld device brings huge simultaneously easily, also requirements at the higher level are proposed to the performance of mobile phone, the performance of application.
Investigation display: take in journey APP (application) and occur increasing list page, when list page content and interactive operation too much time, original list there will be obviously card, the situation even directly causing APP to collapse generation.Above-mentioned reason is caused to have a lot, except the factor of equipment performance, Dom (DOM Document Object Model) structure organization is unreasonable, Dom quantity too much, the binding of Dom attribute data amount too much and Dom operation too frequently cause that memory consumption is excessive, CPU (central processing unit) calculated amount is excessive thus cause APP that card occurs, directly collapse time serious.
Summary of the invention
The technical problem to be solved in the present invention be the page in order to overcome mobile device in prior art often due to content of pages and the interactive operation defect of even collapsing that too much causes the page that card occurs, provide a kind of web data to store and the system and method for operation.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides the system that a kind of web data stores, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, and its feature is,
Each DOM node all stores the key message of this object, and this key message comprises identifying information;
Storing the identifying information of this object and other all information except this key message in buffer, there is one-to-one relationship in this identifying information and these other all information, and whether these other all information comprises operational code, method of operating and be the operation of shrinking;
This webpage only shows the key message of each object.
The system that the present invention also provides a kind of web data to operate, its feature is, the system stored based on above-mentioned web data realizes, and the system of this web data operation comprises a load module, an enquiry module and an acquisition module;
This load module is for receiving the input for the operation of an object in this webpage;
This enquiry module is used for inquiring about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
This acquisition module is for the method for operating that obtains in other all information of this correspondence and perform according to this method of operating.
A kind of method that the present invention also provides web data to operate, its feature is, it utilizes the system of above-mentioned web data operation to realize, and it comprises the following steps:
S
1', this load module receives for the input of the operation of an object in this webpage;
S
2', this enquiry module inquires about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
S
3', this acquisition module obtains the method for operating in other all information of this correspondence and performs according to this method of operating.
A kind of method that the present invention also provides web data to store, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, and it is characterized in that, it comprises the following steps:
S
1, each DOM node all stores the key message of this object, this key message comprises identifying information;
S
2, the identifying information of this object and other all information except this key message are all stored in a buffer, there is one-to-one relationship in this identifying information and these other all information, whether these other all information comprises operational code, method of operating and be the operation of shrinking;
S
3, this webpage only shows the key message of each object.
Preferably, each object in this buffer stores with the form of Hash table.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
The present invention is directed to mobile Internet, improve webpage loading velocity and rendering speed, improve page interaction capabilities, add the fluency of page operation, save performance cost, make user when mobile terminal operating list page and the larger page of other data volumes, experience more smooth, the risk reducing APP card and collapse.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method that the web data of present pre-ferred embodiments stores.
Fig. 2 is the structured flowchart of the system of the web data operation of present pre-ferred embodiments.
Fig. 3 is the process flow diagram of the system of the web data operation of present pre-ferred embodiments.
Embodiment
Provide present pre-ferred embodiments below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail, but therefore do not limit the present invention among described scope of embodiments.
The system that the present embodiment provides a kind of web data to store, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, each DOM node all stores the key message of this object, and this key message comprises identifying information;
Storing the identifying information of this object and other all information except this key message in buffer, there is one-to-one relationship in this identifying information and these other all information, and whether these other all information comprises operational code, method of operating and be the operation of shrinking;
This webpage only shows the key message of each object.
As shown in Figure 1, a kind of method that the present embodiment also provides web data to store, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, and it comprises the following steps:
Step 101, each DOM node all store the key message of this object, and this key message comprises identifying information;
Step 102, the identifying information of this object and other all information except this key message are all stored in a buffer, there is one-to-one relationship in this identifying information and these other all information, and whether each object in this buffer stores these other all information with the form of Hash table comprise operational code, method of operating and be the operation of shrinking;
Step 103, this webpage only show the key message of each object.
Shown in figure 2, the system that the present embodiment provides a kind of web data to operate, the system stored based on above-mentioned web data realizes, and the system of this web data operation comprises load module 1, enquiry module 2 and an acquisition module 3.
Wherein, this load module 1 is for receiving the input for the operation of an object in this webpage;
This enquiry module 2 is for inquiring about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
This acquisition module 3 is for the method for operating that obtains in other all information of this correspondence and perform according to this method of operating.
In this programme, the only key content of storage object in each DOM node, such as order ID (identity tag number), and the non-critical content of object is stored in buffer, like this when reading the business information that DOM node is correlated with, by order ID as key value quick obtaining from buffer, thus avoid a large amount of traversal to DOM node and DOM attribute and calculating, significantly reduce the pressure of CPU and internal memory, and decrease the volume of DOM node, therefore can add under same appointed condition and set out more content, the possibility of further minimizing APP collapse.
Such as, in prior art, when order card loads too much (about 80-100 opens order card), webpage interactive operation there will be the situation that obviously card even collapses.After using this solution, when order card loads more than 1000, interactive operation all there will not be Caton phenomenon, also not there is not the phenomenon of collapse, thus when making the big data quantity information when user accesses, page fluency increases, the situation greatly reducing APP collapse occurs.
Shown in figure 3, a kind of method that the present embodiment also provides web data to operate, it utilizes the system of above-mentioned web data operation to realize, and it comprises the following steps:
Step 201, this load module receive the input for the operation of an object in this webpage;
Step 202, this enquiry module inquire about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
Step 203, this acquisition module obtain the method for operating in other all information of this correspondence and perform according to this method of operating.
The present invention is directed to mobile Internet, improve webpage loading velocity and rendering speed, improve page interaction capabilities, add the fluency of page operation, save performance cost, make user when mobile terminal operating list page and the larger page of other data volumes, experience more smooth, the risk reducing APP card and collapse.
Each functional module in the present invention all can be realized in conjunction with existing software programming means under existing hardware condition, therefore does not all repeat its concrete methods of realizing at this.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.
Claims (5)
1. a system for web data storage, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, it is characterized in that,
Each DOM node all stores the key message of this object, and this key message comprises identifying information;
Storing the identifying information of this object and other all information except this key message in buffer, there is one-to-one relationship in this identifying information and these other all information, and whether these other all information comprises operational code, method of operating and be the operation of shrinking;
This webpage only shows the key message of each object.
2. a system for web data operation, is characterized in that, the system stored based on web data as claimed in claim 1 realizes, and the system of this web data operation comprises a load module, an enquiry module and an acquisition module;
This load module is for receiving the input for the operation of an object in this webpage;
This enquiry module is used for inquiring about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
This acquisition module is for the method for operating that obtains in other all information of this correspondence and perform according to this method of operating.
3. a method for web data operation, is characterized in that, the system that it utilizes web data as claimed in claim 2 to operate realizes, and it comprises the following steps:
S
1', this load module receives for the input of the operation of an object in this webpage;
S
2', this enquiry module inquires about other all information corresponding to this identifying information in this buffer according to the identifying information of this object;
S
3', this acquisition module obtains the method for operating in other all information of this correspondence and performs according to this method of operating.
4. a method for web data storage, this webpage is with dom tree representation, and dom tree structure comprises multiple DOM node, and each DOM node associates an object in this webpage, and it is characterized in that, it comprises the following steps:
S
1, each DOM node all stores the key message of this object, this key message comprises identifying information;
S
2, the identifying information of this object and other all information except this key message are all stored in a buffer, there is one-to-one relationship in this identifying information and these other all information, whether these other all information comprises operational code, method of operating and be the operation of shrinking;
S
3, this webpage only shows the key message of each object.
5. the method for web data storage as claimed in claim 4, it is characterized in that, each object in this buffer stores with the form of Hash table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510801184.6A CN105404672B (en) | 2015-11-19 | 2015-11-19 | The system and method for web data storage and operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510801184.6A CN105404672B (en) | 2015-11-19 | 2015-11-19 | The system and method for web data storage and operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105404672A true CN105404672A (en) | 2016-03-16 |
CN105404672B CN105404672B (en) | 2019-03-26 |
Family
ID=55470161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510801184.6A Active CN105404672B (en) | 2015-11-19 | 2015-11-19 | The system and method for web data storage and operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105404672B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106202315A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | The method and device that data process |
WO2019205365A1 (en) * | 2018-04-27 | 2019-10-31 | 平安科技(深圳)有限公司 | Method and apparatus for loading dom node data, and computer device and storage medium |
CN111460339A (en) * | 2020-04-01 | 2020-07-28 | 上海携程商务有限公司 | Method for adding free-row rental car resource to shopping cart and related equipment |
CN112181242A (en) * | 2019-07-02 | 2021-01-05 | 北京百度网讯科技有限公司 | Page display method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214244A (en) * | 2011-07-07 | 2011-10-12 | 深圳市万兴软件有限公司 | Analytic method and system for docx file information |
US8713427B2 (en) * | 2010-11-12 | 2014-04-29 | Samsung Electronics Co., Ltd. | Apparatus and method for extracting cascading style sheet rules |
CN104951445A (en) * | 2014-03-25 | 2015-09-30 | 小米科技有限责任公司 | Webpage processing method and device |
-
2015
- 2015-11-19 CN CN201510801184.6A patent/CN105404672B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8713427B2 (en) * | 2010-11-12 | 2014-04-29 | Samsung Electronics Co., Ltd. | Apparatus and method for extracting cascading style sheet rules |
CN102214244A (en) * | 2011-07-07 | 2011-10-12 | 深圳市万兴软件有限公司 | Analytic method and system for docx file information |
CN104951445A (en) * | 2014-03-25 | 2015-09-30 | 小米科技有限责任公司 | Webpage processing method and device |
Non-Patent Citations (2)
Title |
---|
YULIAN FEI.ETC: "A Semantic DOM Approach for Webpage Information Extraction", 《MASS "09. INTERNATIONAL CONFERENCE ON MANAGEMENT AND SERVICE SCIENCE》 * |
付涛: "基于DOM和显示属性的网页信息除燥技术研究", 《商丘师范学院学报》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106202315A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | The method and device that data process |
WO2019205365A1 (en) * | 2018-04-27 | 2019-10-31 | 平安科技(深圳)有限公司 | Method and apparatus for loading dom node data, and computer device and storage medium |
CN112181242A (en) * | 2019-07-02 | 2021-01-05 | 北京百度网讯科技有限公司 | Page display method and device |
CN112181242B (en) * | 2019-07-02 | 2021-11-02 | 北京百度网讯科技有限公司 | Page display method and device |
CN111460339A (en) * | 2020-04-01 | 2020-07-28 | 上海携程商务有限公司 | Method for adding free-row rental car resource to shopping cart and related equipment |
CN111460339B (en) * | 2020-04-01 | 2024-03-05 | 上海携程商务有限公司 | Method for adding free taxi resources to shopping carts and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105404672B (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101994021B1 (en) | File manipulation method and apparatus | |
CN104424199A (en) | Search method and device | |
CN103345493B (en) | Method that content of text on mobile terminal shows, Apparatus and system | |
CN105631035B (en) | Date storage method and device | |
CN103488732A (en) | Generation method and device of static pages | |
CN102520918A (en) | Method and device for increasing list refreshing frequency | |
CN101729590A (en) | Method, system and device for providing web page | |
CN103368986A (en) | Information recommendation method and information recommendation device | |
CN105404672A (en) | Webpage data storage and operation system and method | |
CN104391951A (en) | Web page thermodynamic diagram loading method and device | |
CN103383687A (en) | Page processing method and device | |
CN103473326A (en) | Method and device providing searching advices | |
CN103559194B (en) | A kind of searching method, server, system | |
CN104182403A (en) | Method and equipment for loading image information | |
CN105488078A (en) | Web page data caching method and equipment | |
CN102437894A (en) | Method, device and equipment for compressing information to be sent | |
CN103699652A (en) | Webpage access method and webpage access system | |
US11928172B2 (en) | Systems and methods for a web browser for use in handheld wireless devices that renders web pages without advertisement | |
CN103646115A (en) | Method and system for client side to access to webpage | |
CN103336812A (en) | Webpage resource caching method and device for improving secondary loading efficiency | |
CN105653550A (en) | Web page filtering method and device | |
CN106919696A (en) | SEO websites construction method and the response method of SEO requests | |
CN102306184B (en) | Method, device and apparatus for obtaining compressed link address information and compressed webpage | |
CN109213950B (en) | Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box | |
CN109697281A (en) | The online method, apparatus and electronic equipment for merging document |
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 |