CN112836155A - Method for increasing opening speed of detailed pages of building - Google Patents
Method for increasing opening speed of detailed pages of building Download PDFInfo
- Publication number
- CN112836155A CN112836155A CN202110053490.1A CN202110053490A CN112836155A CN 112836155 A CN112836155 A CN 112836155A CN 202110053490 A CN202110053490 A CN 202110053490A CN 112836155 A CN112836155 A CN 112836155A
- Authority
- CN
- China
- Prior art keywords
- data
- cache
- floor
- strategy
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000010485 coping Effects 0.000 claims abstract description 10
- 238000002474 experimental method Methods 0.000 claims abstract description 10
- 238000005457 optimization Methods 0.000 claims abstract description 8
- 230000007246 mechanism Effects 0.000 claims abstract description 7
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
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/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Abstract
The invention relates to the technical field of sales exhibition, in particular to a method for improving the opening speed of a floor detail page, which reduces the waiting time for a user to open the floor detail page by modifying the loading logic and cache optimization of the floor detail data, preferentially renders a preloaded page when the floor data is not cached, and shows part of the floor data to the user in advance; the method comprises an interface data caching strategy, a cache data validity judgment strategy, a cache data validity coping strategy and an AB experiment fault tolerance mechanism.
Description
Technical Field
The invention relates to the technical field of sales display, in particular to a method for improving the opening speed of a building detail page.
Background
When the mobile internet era is entered, the use habits of most users on internet products are transferred from a web end to a convenient and quick mobile end, and the page opening speed is particularly important in the app using process, so that the user experience is greatly influenced. For the house property app, the opening speed of the building detail page directly influences the watching speed of the user, how to open the building detail page more quickly, and meanwhile, the most accurate and latest building data is presented to the user, which is always a topic worth exploring.
The conventional implementation logic for opening the mobile terminal APP page is as follows: firstly, initializing a page controller; after the internal view layer of the page controller is loaded, starting to call an interface to request network data; and after the network data request is completed, converting json data issued by the server into view information and displaying the view information. However, since the interface request is affected by the actual network environment, especially in the case of a weak network, the interface request time may be too long, even exceeding the valid request time, for example, 30s, and still the data reception cannot be completed. In order to ensure the normal response logic of the page, the client needs to display a loading animation on the blank page to represent the loading process, and at this time, the user cannot perform any interactive operation, so that the experience effect is poor.
Disclosure of Invention
In order to solve the technical problems, the invention provides a building detail page opening speed improving method, the waiting time for opening a building detail page by a user is reduced by modifying the loading logic and cache optimization of the building detail data, when the building data is not cached, a preloaded page is preferentially rendered, part of the building data is displayed for the user in advance, when the building detail data is cached, the cache data is directly used for rendering the building detail page, the second opening function of the building detail page is realized, the cache data is maintained by setting effective time, the overdue data is prevented from being presented for the user, so that complaints are caused, when the local storage capacity of the cache data exceeds a threshold value, an invalid cache is deleted, the occupancy of a user disk is reduced, and the function rollback can be realized on line in real time by issuing a switch through a server.
The method for improving the opening speed of the building detail page comprises an interface data caching strategy, a cache data effectiveness judging strategy, a cache data effectiveness coping strategy and an AB experiment fault tolerance mechanism.
The invention discloses a method for improving the opening speed of a building detail page, which comprises the following specific steps of: the client requests the server through the https protocol, the server returns all data of the floor detail page after logic processing, the client judges whether data caching operation is needed or not according to a switch issued by the server after receiving the data, if the data caching is required by the issued switch, a unique identifier is combined by using an interface access address and a request parameter, a sub-thread is started, the data returned by the server is stored in a local disk of the mobile phone in the sub-thread, the generation time of the cache needs to be additionally stored at the moment and is used as a basis for judging the overdue cache when the cache is read next time, and if the function is required to be closed by the issued switch, the data is directly analyzed and the view information is called back.
The method for improving the opening speed of the building detail page comprises the following specific steps of: when a local cache is required to be requested, firstly, the generation time of the current cache needs to be acquired, then, the generation time is compared with the current mobile phone time, if the interval between the generation time of the cache and the current time exceeds the preset effective time, the cache is judged to exceed the effective period, at the moment, the overdue data needs to be deleted, and otherwise, the cache is continuously read and then returned.
The method for improving the opening speed of the building detail page comprises the following specific steps of: when the floor card skip details are clicked in the floor list, the data of the floor card are temporarily cached, the data enter a detail page, and a specific coping strategy is determined according to the effectiveness of the cached data of the floor detail interface.
The invention discloses a method for improving the opening speed of a building detail page, which comprises the following steps of: the method adopts the form of an AB experiment control group, regulates and controls the sample size of the client at any time, adjusts the user sample size of the optimization scheme in real time through the platform, can more scientifically compare the optimization condition of a new scheme, can also avoid influencing the online user experience due to the abnormal problem of the technical scheme in time, can adjust the sample size once the scheme has serious problems, and can quickly close the strategy starting.
Compared with the prior art, the invention has the beneficial effects that: the method has the advantages that the existing interface data caching strategy of the APP is utilized, the interface information requested by the history is locally cached, when the interface with the same URL is requested next time, the existing local cache data can be preferentially read, the interface request process of the current time does not need to be waited, meanwhile, the accuracy of page data is guaranteed through the policy scheme of the effectiveness of the cache data, and therefore the method can be achieved, when a detail page is opened for the first time, the field information of the read list data shows a smooth preview page, when the detail page is opened for the second time, the cache content can be immediately read to be displayed in real time, and the user experience is greatly improved.
Drawings
FIG. 1 is a flow chart of an interface data caching strategy;
FIG. 2 is a flow chart of a policy for determining cache data validity;
FIG. 3 is a flow diagram of a coping strategy for cache data validity;
FIG. 4 is a flow diagram of a fault tolerance mechanism for the AB experiment;
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
As shown in fig. 1 to 4, the method for increasing the opening speed of the building detail page includes an interface data caching strategy, a cache data validity judgment strategy, a cache data validity coping strategy, and an AB experiment fault tolerance mechanism.
The method for increasing the opening speed of the building detail page, disclosed by the invention, comprises the following specific steps of: the client requests the server through the https protocol, the server returns all data of the floor detail page after logic processing, the client judges whether data caching operation is needed or not according to a switch issued by the server after receiving the data, if the data caching is required by the issued switch, a unique identifier is combined by using an interface access address and a request parameter, a sub-thread is started, the data returned by the server is stored in a local disk of the mobile phone in the sub-thread, the generation time of the cache needs to be additionally stored at the moment and is used as a basis for judging the overdue cache when the cache is read next time, and if the function is required to be closed by the issued switch, the data is directly analyzed and the view information is called back.
According to the method for improving the opening speed of the building detail page, as shown in fig. 2, the strategy for judging the validity of the cache data specifically comprises the following steps: when a local cache is required to be requested, firstly, the generation time of the current cache needs to be acquired, then, the generation time is compared with the current mobile phone time, if the interval between the generation time of the cache and the current time exceeds the preset effective time, the cache is judged to exceed the effective period, at the moment, the overdue data needs to be deleted, and otherwise, the cache is continuously read and then returned.
According to the method for improving the opening speed of the building detail page, as shown in fig. 3, the coping strategy for the validity of the cache data specifically comprises the following steps: when the skip details of the building cards are clicked in the building list, the data of the building cards are temporarily cached, a detail page is entered, and a specific coping strategy is determined according to the effectiveness of the cached data of a building detail interface;
according to the first scheme, if the cache data is empty or invalid, the data field of the list card is preferentially analyzed and displayed as preview picture data to replace the original blank page loading effect. And simultaneously, the interface initiates a request, and after the interface data is finished, the preview page information is replaced, and the content of the detail page is displayed. And in the second scheme, the cache data is effective and can be successfully acquired, and at the moment, the cache data is immediately analyzed and is displayed as a detail page data source. And simultaneously, the interface still has a silent request, and after the interface data is finished, the interface data is subjected to silent cache and reserved as new cache data for entering the detail page again, so that the condition that the detail page can be skipped every time to obtain the newer interface data in a short time can be ensured. And in order to deal with the user state change type data display such as collection, preferential acquisition and the like, a cache invalidation operation is set so as to ensure that the historical cache data cannot be displayed immediately next time when the state type data of the detail page changes, and the first scheme is utilized to ensure that the next detail page can display the new data content issued by the interface.
According to the method for improving the opening speed of the building detail page, as shown in fig. 4, the fault tolerance mechanism of the AB experiment specifically comprises the following steps: the method adopts the form of an AB experiment control group, regulates and controls the sample size of the client at any time, adjusts the user sample size of the optimization scheme in real time through the platform, can more scientifically compare the optimization condition of a new scheme, can also avoid influencing the online user experience due to the abnormal problem of the technical scheme in time, can adjust the sample size once the scheme has serious problems, and can quickly close the strategy starting.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (5)
1. A method for improving the opening speed of a building detail page is characterized by comprising an interface data caching strategy, a cache data validity judging strategy, a cache data validity coping strategy and an AB experiment fault tolerance mechanism.
2. The method for improving the opening speed of the floor detail page according to claim 1, wherein the interface data caching strategy comprises the following specific steps: the client requests the server through the https protocol, the server returns all data of the floor detail page after logic processing, the client judges whether data caching operation is needed or not according to a switch issued by the server after receiving the data, if the data caching is required by the issued switch, a unique identifier is combined by using an interface access address and a request parameter, a sub-thread is started, the data returned by the server is stored in a local disk of the mobile phone in the sub-thread, the generation time of the cache needs to be additionally stored at the moment and is used as a basis for judging the overdue cache when the cache is read next time, and if the function is required to be closed by the issued switch, the data is directly analyzed and the view information is called back.
3. The method for improving the opening speed of the floor detail page according to claim 2, wherein the strategy for judging the validity of the cache data comprises the following steps: when a local cache is required to be requested, firstly, the generation time of the current cache needs to be acquired, then, the generation time is compared with the current mobile phone time, if the interval between the generation time of the cache and the current time exceeds the preset effective time, the cache is judged to exceed the effective period, at the moment, the overdue data needs to be deleted, and otherwise, the cache is continuously read and then returned.
4. The method for improving the opening speed of the floor detail page according to claim 3, wherein the coping strategy for the validity of the cache data comprises the following specific steps: when the floor card skip details are clicked in the floor list, the data of the floor card are temporarily cached, the data enter a detail page, and a specific coping strategy is determined according to the effectiveness of the cached data of the floor detail interface.
5. The method for increasing the opening speed of the building detail page as claimed in claim 4, wherein the fault tolerance mechanism of the AB experiment comprises the following steps: the method adopts the form of an AB experiment control group, regulates and controls the sample size of the client at any time, adjusts the user sample size of the optimization scheme in real time through the platform, can more scientifically compare the optimization condition of a new scheme, can also avoid influencing the online user experience due to the abnormal problem of the technical scheme in time, can adjust the sample size once the scheme has serious problems, and can quickly close the strategy starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110053490.1A CN112836155A (en) | 2021-01-15 | 2021-01-15 | Method for increasing opening speed of detailed pages of building |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110053490.1A CN112836155A (en) | 2021-01-15 | 2021-01-15 | Method for increasing opening speed of detailed pages of building |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112836155A true CN112836155A (en) | 2021-05-25 |
Family
ID=75928229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110053490.1A Pending CN112836155A (en) | 2021-01-15 | 2021-01-15 | Method for increasing opening speed of detailed pages of building |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112836155A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114357343A (en) * | 2021-11-30 | 2022-04-15 | 中科大数据研究院 | Webpage data processing method, device, equipment and storage medium |
CN115129187A (en) * | 2022-05-31 | 2022-09-30 | 瑞庭网络技术(上海)有限公司 | Room source watching method and device, electronic equipment and storage medium |
CN115292642A (en) * | 2022-07-29 | 2022-11-04 | 深圳市六度人和科技有限公司 | Page display method and device, storage medium and computer equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095374A (en) * | 2015-06-30 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for browsing mobile terminal news |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN107645516A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | Application of software data caching method and device |
CN109032457A (en) * | 2017-08-18 | 2018-12-18 | 金蝶软件(中国)有限公司 | page display method, device, terminal and storage medium |
-
2021
- 2021-01-15 CN CN202110053490.1A patent/CN112836155A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN105095374A (en) * | 2015-06-30 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for browsing mobile terminal news |
CN107645516A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | Application of software data caching method and device |
CN109032457A (en) * | 2017-08-18 | 2018-12-18 | 金蝶软件(中国)有限公司 | page display method, device, terminal and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114357343A (en) * | 2021-11-30 | 2022-04-15 | 中科大数据研究院 | Webpage data processing method, device, equipment and storage medium |
CN115129187A (en) * | 2022-05-31 | 2022-09-30 | 瑞庭网络技术(上海)有限公司 | Room source watching method and device, electronic equipment and storage medium |
CN115129187B (en) * | 2022-05-31 | 2024-02-06 | 瑞庭网络技术(上海)有限公司 | House source area viewing method and device, electronic equipment and storage medium |
CN115292642A (en) * | 2022-07-29 | 2022-11-04 | 深圳市六度人和科技有限公司 | Page display method and device, storage medium and computer equipment |
CN115292642B (en) * | 2022-07-29 | 2023-10-13 | 深圳市六度人和科技有限公司 | Page display method and device, storage medium and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112836155A (en) | Method for increasing opening speed of detailed pages of building | |
US9065879B2 (en) | Methods and systems for selecting media content based on technical environment information | |
US20180246862A1 (en) | Methods for prerendering and methods for managing and configuring prerendering operations | |
US11019179B2 (en) | Access to network content | |
US8375107B2 (en) | Webpage pre-reading method, transfer server and webpage pre-reading system | |
US20130007260A1 (en) | Access to network content | |
US20100318745A1 (en) | Dynamic Content Caching and Retrieval | |
US8516041B1 (en) | Pre-fetching asynchronously requested content | |
CN106681990B (en) | Data cached forecasting method under a kind of mobile cloud storage environment | |
CN106599239A (en) | Webpage content data acquisition method and server | |
CN103095840B (en) | A kind of advertisement loading method for mobile terminal | |
CN113574503B (en) | Actively caching transient helper action suggestions at a feature handset | |
US20150200832A1 (en) | Adaptive Document Autosaving Rate Based on Different Conditions | |
CN110191168A (en) | Processing method, device, computer equipment and the storage medium of online business datum | |
US8874687B2 (en) | System and method for dynamically modifying content based on user expectations | |
CN106446075A (en) | Page request processing method and apparatus | |
CN107301182A (en) | A kind of method and apparatus for the webpage for showing embedded picture | |
CN108319619B (en) | Data processing method and device | |
CN113704653B (en) | Data display method and related device | |
CN110858238B (en) | Data processing method and device | |
CN112307383A (en) | Page loading method and device | |
CN113448649B (en) | Redis-based home page data loading server and method | |
CN115314654B (en) | Video processing method, system, storage medium and electronic equipment | |
JP3855694B2 (en) | Homepage caching method, information processing apparatus, and program | |
JP5290994B2 (en) | System and method for displaying multimedia event scheduling information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210825 Address after: 100000 1025, floor 1, No. 1, Kaifa Road, Shangdi Information Industry base, Haidian District, Beijing Applicant after: Beijing tulayan Technology Co.,Ltd. Address before: 100089 08a01, block D, 8 / F, No. a 28, information road, Haidian District, Beijing Applicant before: Beijing Gaoyin Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right |