CN104331492B - A kind of method and device for caching more instance datas - Google Patents
A kind of method and device for caching more instance datas Download PDFInfo
- Publication number
- CN104331492B CN104331492B CN201410648574.XA CN201410648574A CN104331492B CN 104331492 B CN104331492 B CN 104331492B CN 201410648574 A CN201410648574 A CN 201410648574A CN 104331492 B CN104331492 B CN 104331492B
- Authority
- CN
- China
- Prior art keywords
- data
- active instance
- instance list
- time
- list
- 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
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/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/217—Database tuning
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)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
Claims (8)
- A kind of 1. method for caching more instance datas, it is characterised in that safeguard there are active instance row in the internal memory of server end Table, field is comprised at least in the active instance list:Example id and example last time request server end data time T;Methods described includes:, will if not finding the example in the active instance list when receiving the request of data that a certain example is sent The id of the example is added in the active instance list, and corresponding time T is set to the time at current server end, and from Client corresponding to the example is returned to after the data of the example are inquired about in database;And will exist in the buffer, but described The data cached deletion for the example being not present in active instance list;If having found the example in the active instance list, data cached example that returns to of the example is corresponded to Client, and update the last-minute plea time of corresponding instance in the active instance list.
- 2. the method for more instance datas is cached according to claim 1, it is characterised in that described that the reality is inquired about from database After returning to client corresponding to the example after the data of example, methods described also includes:The data of the example inquired from database are put into caching.
- 3. the method for more instance datas is cached according to claim 1, it is characterised in that methods described also includes:Maintenance periodically is updated to the active instance list.
- 4. the method for more instance datas is cached according to claim 3, it is characterised in that described periodically to the active instance List is updated maintenance:Inspect periodically the last time renewal time of each example in the active instance list;If the last time renewal time of a certain example and the difference of current time exceed the threshold value of setting, judge that the example is Inactive example, and the example is deleted from the active instance list.
- 5. a kind of device for caching more instance datas, it is characterised in that described device includes:Active instance list management unit, for safeguarding active instance list, field is comprised at least in the active instance list: Example id and example last time request server end data time T;Data receipt unit, the request of data sent for receiving a certain example;Instance data processing unit, the request of data that a certain example for being received according to the data receipt unit is sent exist Lookup processing is carried out in the active instance list, is specifically included:If not finding the example in the active instance list, Then the id of the example is added in the active instance list, and corresponding time T is set to the time at current server end, And return to client corresponding to the example after the data of the example are inquired about from database;And will exist in the buffer, but The data cached deletion for the example being not present in the active instance list;If found in the active instance list The example, then the data cached of the example is returned into client corresponding to the example, and updated in the active instance list The last-minute plea time of corresponding instance.
- 6. the device of more instance datas is cached as claimed in claim 5, it is characterised in that described device also includes:Data cached administrative unit, for inquiring about the data of the example from database in the instance data processing unit and returning After client corresponding to the example, the data of the example inquired from database are put into caching.
- 7. the device of more instance datas is cached as claimed in claim 5, it is characterised in thatThe active instance list management unit is further used for periodically being updated maintenance to the active instance list.
- 8. the device of more instance datas is cached as claimed in claim 7, it is characterised in that the active instance list management unit Further comprise:Updating maintenance module, for inspecting periodically the last time renewal time of each example in the active instance list;If certain The last time renewal time of one example and the difference of current time exceed the threshold value of setting, then judge the example for inactive reality Example, and the example is deleted from the active instance list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410648574.XA CN104331492B (en) | 2014-11-14 | 2014-11-14 | A kind of method and device for caching more instance datas |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410648574.XA CN104331492B (en) | 2014-11-14 | 2014-11-14 | A kind of method and device for caching more instance datas |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104331492A CN104331492A (en) | 2015-02-04 |
CN104331492B true CN104331492B (en) | 2017-11-21 |
Family
ID=52406219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410648574.XA Active CN104331492B (en) | 2014-11-14 | 2014-11-14 | A kind of method and device for caching more instance datas |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104331492B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547751B (en) * | 2015-09-16 | 2020-11-24 | 阿里巴巴集团控股有限公司 | Cache data updating method and device |
CN105468795A (en) * | 2015-10-30 | 2016-04-06 | 广西慧云信息技术有限公司 | Sensing device real-time data management method |
CN106933933B (en) * | 2015-12-31 | 2019-12-10 | 北京国双科技有限公司 | Data table information processing method and device |
CN105812189B (en) * | 2016-04-26 | 2019-06-28 | 努比亚技术有限公司 | A kind of information processing method and server |
CN109120692B (en) * | 2018-08-16 | 2021-09-28 | 北京百度网讯科技有限公司 | Method and apparatus for processing requests |
CN109255001A (en) * | 2018-08-31 | 2019-01-22 | 阿里巴巴集团控股有限公司 | Maintaining method and device, the electronic equipment in interface instance library |
CN109213604B (en) * | 2018-10-15 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Data source management method and device |
CN110162543A (en) * | 2019-05-29 | 2019-08-23 | 北京奇艺世纪科技有限公司 | A kind of information query method and device |
CN110795457B (en) * | 2019-09-24 | 2023-05-05 | 苏宁云计算有限公司 | Data caching processing method, device, computer equipment and storage medium |
CN113688338A (en) * | 2020-05-19 | 2021-11-23 | 上海惠芽信息技术有限公司 | User data processing method, processing device and computer storage medium |
CN111782185B (en) * | 2020-06-30 | 2024-01-09 | 北京百度网讯科技有限公司 | Management method, equipment and medium of artificial intelligent development platform |
CN112433875B (en) * | 2020-11-23 | 2024-07-16 | 京东科技控股股份有限公司 | Middleware-based database operation method and device and terminal equipment |
CN114385663B (en) * | 2022-03-23 | 2022-06-28 | 北京国联政信科技有限公司 | Method and apparatus for data processing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1659548A (en) * | 2002-07-17 | 2005-08-24 | 欧里科国际公司 | System and method for caching data for a mobile application |
CN102663096A (en) * | 2012-04-11 | 2012-09-12 | 北京像素软件科技股份有限公司 | Method for reading data based on data cache technology |
CN102999444A (en) * | 2012-11-13 | 2013-03-27 | 华为技术有限公司 | Method and device for replacing data in caching module |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9298719B2 (en) * | 2012-09-04 | 2016-03-29 | International Business Machines Corporation | On-demand caching in a WAN separated distributed file system or clustered file system cache |
-
2014
- 2014-11-14 CN CN201410648574.XA patent/CN104331492B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1659548A (en) * | 2002-07-17 | 2005-08-24 | 欧里科国际公司 | System and method for caching data for a mobile application |
CN102663096A (en) * | 2012-04-11 | 2012-09-12 | 北京像素软件科技股份有限公司 | Method for reading data based on data cache technology |
CN102999444A (en) * | 2012-11-13 | 2013-03-27 | 华为技术有限公司 | Method and device for replacing data in caching module |
Also Published As
Publication number | Publication date |
---|---|
CN104331492A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104331492B (en) | A kind of method and device for caching more instance datas | |
US20210044662A1 (en) | Server side data cache system | |
CN112260876B (en) | Dynamic gateway route configuration method, platform, computer equipment and storage medium | |
CN104765661B (en) | The multinode hot spare method of Metadata Service node in a kind of cloud storage service | |
CN107092437A (en) | Data write-in, read method and device, cloud storage system | |
CN101557427A (en) | Method for providing diffluent information and realizing the diffluence of clients, system and server thereof | |
CN104537013B (en) | A kind of method and apparatus of processing data | |
CN103729247B (en) | Data acquisition request processing method and system and server | |
US20100262687A1 (en) | Dynamic data partitioning for hot spot active data and other data | |
US20170269848A1 (en) | Selecting pages implementing leaf nodes and internal nodes of a data set index for reuse | |
CN105653198A (en) | Data processing method and device | |
CN111291083B (en) | Web page source code data processing method, device and computer equipment | |
CN105554121A (en) | Method and system for realizing load equalization of distributed cache system | |
CN105245560A (en) | Method, device and system for realizing distributed cache | |
CN106777085A (en) | A kind of data processing method, device and data query system | |
CN105635196A (en) | Method and system of file data obtaining, and application server | |
CN103645904A (en) | Cache realization method of interface calling | |
US20130060810A1 (en) | Smart database caching | |
CN104580432A (en) | Memcached system, memory cache data provision method and device, memory cache data maintenance method and device as well as cluster maintenance method and device | |
CN101404649B (en) | A data processing system and method based on CACHE | |
CN102929943B (en) | data output method and device | |
CN103561060A (en) | Communication link method under multi-thread environment and transit server | |
CN105607606B (en) | A kind of data acquisition device and method based on double mainboard frameworks | |
CN109597724B (en) | Service stability measuring method, device, computer equipment and storage medium | |
CN105162837A (en) | Method and system for improving I/O throughput rate in massive data storage environment |
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 | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Method and device for caching multi-instance data Effective date of registration: 20190531 Granted publication date: 20171121 Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd. Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Registration number: 2019990000503 |
|
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20240604 Granted publication date: 20171121 |