CN102521252A - Access method of remote data - Google Patents
Access method of remote data Download PDFInfo
- Publication number
- CN102521252A CN102521252A CN2011103644365A CN201110364436A CN102521252A CN 102521252 A CN102521252 A CN 102521252A CN 2011103644365 A CN2011103644365 A CN 2011103644365A CN 201110364436 A CN201110364436 A CN 201110364436A CN 102521252 A CN102521252 A CN 102521252A
- Authority
- CN
- China
- Prior art keywords
- data item
- client
- server
- data
- local cache
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the field of data transmission, and discloses an access method of remote data. The access method concretely comprises the following steps of: step 1, establishing one data base which is called as a local caching data base on a magnetic disk at a client side; step 2, connecting the client side to a server, inquiring the client side maintenance list of the client side in the data base of the server, and updating the local caching data base of the client side according to the content of the client side maintenance list; and step 3, when the client side needs to access one data item of the data base, firstly, inquiring the local caching data base, and then requesting the data item towards the server if the data item does not exist in the local caching data base. The active propelling is carried out by utilizing local caching and data updating; the access of most network data is localized; furthermore, the local data item is only updated when the local data item is necessary to be updated; the transmission times and the total transmission flow rate of the remote data are reduced; and the access efficiency of the data is improved.
Description
Technical field
The present invention relates to field of data transmission, relate in particular to a kind of access method of teledata.
Background technology
Traditional network data base data access request is to be connected to server through network earlier through client computer client, asks certain bar data then, gives client by server with the data transmission of request again.But inevitable, same client can be in the identical data item of different time request, such as today and tomorrow equal request server second association, classic method is that server repeats to transmit this association through network.Repeating to transmit identical data item obviously is to waste resource and influence efficient.The legacy network database access schematic flow sheet of its model shown in accompanying drawing 1.
For the visit of network data base, no matter adopting the separate unit database server still is that distributed database server makes up database, and no matter hardware of server speed how soon, all can't avoid coming through network every data of transmission client request.Consumption is with the network bandwidth and need the total amount of data of transmission relevant during as everyone knows, through transmitted data on network total.The network bandwidth more greatly then transmitting speed is fast more, and is consuming time few more; More greatly then overall transmission time is long more for the total amount of data of transmission, and the possibility of cause clogging and packet loss is also big more in the process of Network Transmission.
Summary of the invention
The objective of the invention is to exist the technical matters of efficient inefficiency, a kind of access method of teledata is provided to traditional method of remote data access in the prior art.
The object of the invention is realized through following technical proposals:
A kind of access method of teledata, it specifically comprises following steps:
Step 1. is set up a database on the disk of client; Be called the local cache database; Said database is the often collection of data items of visit of client; Each data item in the said database also comprises two fields, and whether one of them this data item of expression is last state, and another one is represented the number of times that this data item is visited;
Step 2. client is connected to server; User end to server sends the only network coding of this machine; After server receives the network code of client; The client maintenance table of this client of inquiry carries out the renewal of client terminal local cache database according to the content of client maintenance table in server database; Said client maintenance table comprises two fields, and one is the ID of all data item of local cache database, and another one is that whether this ID data represented item has renewal on the server;
When step 3. client needs certain data item of accessing database; Inquire about the local cache database earlier; If this data item not in the local cache database; Then to this data item of server requests; In the local cache database, increase this data item then, data item is accessed number of times and is set to 1 simultaneously; If this data item is arranged in the local cache database, but its sign is expressed as non-last state, then to this data item of server requests and upgrade this data item, data item is accessed number of times and adds 1 simultaneously; If have this data item and sign to be expressed as last state in the local cache database, then directly use this data item, the while data item is accessed number of times and adds 1.
Preferably, said method comprises that also client regularly deletes the data item after visit capacity is leaned in the local cache database.
Preferably; Above-mentioned steps 2 specifically also comprises when certain data item has been upgraded in the data in server storehouse; Server upgrades all client maintenance tables automatically, in case client is connected to server, if its client maintenance table is not empty in the server; Then server initiatively sends this client maintenance table to client, client according to this table to representing in the local cache database that whether this data item is that the zone bit of last state upgrades.
Preferably, above-mentioned steps 2 also comprises client after upgrading the local cache database based on the client maintenance table, and to server initiation confirmation, server empties this client maintenance table after receiving this confirmation.
Beneficial effect of the present invention: utilize local cache and Data Update active propulsion; The visit of most of network data localization; And only, needs just upgrade local data item when upgrading local data item; Reduce remote data transmission number of times, total delivery flow rate, improved data access efficiency.
Figure of description
Fig. 1 is a legacy network database access schematic flow sheet.
Fig. 2 is the access method synoptic diagram of teledata of the present invention.
Fig. 3 is the data access process flow diagram.
Embodiment
Below in conjunction with specific embodiment and accompanying drawing the present invention is further described.
The access method synoptic diagram of teledata of the present invention as shown in Figure 2, it specifically comprises following steps:
Step 1. is set up a database on the disk of client; Be called the local cache database; Said database is the often collection of data items of visit of client; Each data item in the said database also comprises two fields, and whether one of them this data item of expression is last state, and another one is represented the number of times that this data item is visited.These two fields can be represented with enewStatus and AccessCount respectively; RenewStatus is that true indicates this data item last state; False representes not to be last state; AccessCount indicates the number of times that this data item is visited, and this data item is every by visit once, AccessCount+1.
Step 2. client is connected to server; User end to server sends the only network coding of this machine; After server receives the network code of client; The client maintenance table of this client of inquiry carries out the renewal of client terminal local cache database according to the content of client maintenance table in server database; Said client maintenance table comprises two fields, and one is the ID of all data item of local cache database, and another one is that whether this ID data represented item has renewal on the server.Here the renewal that refers to is the change and the deletion of available data item, and the new data item of inserting is not considered to the renewal of data item in this paper scope, and is considered to the renewal of entire database.
When step 3. client needs certain data item of accessing database; Inquire about the local cache database earlier; If this data item not in the local cache database; Then to this data item of server requests; In the local cache database, increase this data item then, data item is accessed number of times and is set to 1 simultaneously; If this data item is arranged in the local cache database, but its sign is expressed as non-last state, then to this data item of server requests and upgrade this data item, data item is accessed number of times and adds 1 simultaneously; If have this data item and sign to be expressed as last state in the local cache database, then directly use this data item, the while data item is accessed number of times and adds 1.
Utilize local cache and Data Update active propulsion; The visit of most of network data localization; And only when needs upgrade local data item, just upgrade local data item, reduced remote data transmission number of times, total delivery flow rate, improved data access efficiency.
Preferably, client is regularly deleted the data item after visit capacity is leaned in the local cache database.So that the local cache database is not too large.The item number of deletion can rationally be set according to the size of client disk.
Preferably; Said step 2 specifically also comprises when certain data item has been upgraded in the data in server storehouse; Server upgrades all client maintenance tables automatically, in case client is connected to server, if its client maintenance table is not empty; Then initiatively send this client maintenance table to client, client according to this table to representing in the local cache database that whether this data item is that the zone bit of last state upgrades.Promptly revise the RenewStatus field; Indicate that some data item has not been a last state; But do not upgrade these data item to client-requested immediately; When local those of client-access were not the tables of data of last state, client was just to this association of server requests, and upgraded this data item in the local cache database.After renewal finishes, be changed to the state of this data item up-to-date, the data access process flow diagram of idiographic flow shown in accompanying drawing 3.
Preferably, said step 2 also comprises client after upgrading the local cache database according to the client maintenance table, and to server initiation confirmation, server empties this client maintenance table after receiving this confirmation.
More than above-mentionedly be merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. the access method of a teledata, it specifically comprises following steps:
Step 1. is set up a database on the disk of client; Be called the local cache database; Said database is the often collection of data items of visit of client; Each data item in the said database also comprises two fields, and whether one of them this data item of expression is last state, and another one is represented the number of times that this data item is visited;
Step 2. client is connected to server; User end to server sends the only network coding of this machine; After server receives the network code of client; The client maintenance table of this client of inquiry carries out the renewal of client terminal local cache database according to the content of client maintenance table in server database; Said client maintenance table comprises two fields, and one is the ID of all data item of local cache database, and another one is that whether this ID data represented item has renewal on the server;
When step 3. client needs certain data item of accessing database; Inquire about the local cache database earlier; If this data item not in the local cache database; Then to this data item of server requests; In the local cache database, increase this data item then, data item is accessed number of times and is set to 1 simultaneously; If this data item is arranged in the local cache database, but its sign is expressed as non-last state, then to this data item of server requests and upgrade this data item, data item is accessed number of times and adds 1 simultaneously; If have this data item and sign to be expressed as last state in the local cache database, then directly use this data item, the while data item is accessed number of times and adds 1.
2. the access method of teledata as claimed in claim 1 is characterized in that said method comprises that also client regularly deletes the data item after visit capacity is leaned in the local cache database.
3. the access method of teledata as claimed in claim 2; It is characterized in that said step 2 specifically also comprises when certain data item has been upgraded in the data in server storehouse; Server upgrades all client maintenance tables automatically; In case client is connected to server; If its client maintenance table is not empty in the server, then server initiatively sends this client maintenance table to client, client according to this table to representing in the local cache database that whether this data item is that the zone bit of last state upgrades.
4. the access method of teledata as claimed in claim 3; It is characterized in that said step 2 comprises that also client is after upgrading the local cache database according to the client maintenance table; Initiate confirmation to server, server empties this client maintenance table after receiving this confirmation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103644365A CN102521252A (en) | 2011-11-17 | 2011-11-17 | Access method of remote data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103644365A CN102521252A (en) | 2011-11-17 | 2011-11-17 | Access method of remote data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102521252A true CN102521252A (en) | 2012-06-27 |
Family
ID=46292174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103644365A Pending CN102521252A (en) | 2011-11-17 | 2011-11-17 | Access method of remote data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102521252A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414776A (en) * | 2013-08-14 | 2013-11-27 | 上海兆民云计算科技有限公司 | Method for copying content in desktop cloud system external device room |
CN104346345A (en) * | 2013-07-24 | 2015-02-11 | 中兴通讯股份有限公司 | Data storage method and device |
CN104615763A (en) * | 2015-02-13 | 2015-05-13 | 百度在线网络技术(北京)有限公司 | Intermediate table updating method and device |
CN106506704A (en) * | 2016-12-29 | 2017-03-15 | 北京奇艺世纪科技有限公司 | A kind of buffering updating method and device |
CN106599152A (en) * | 2016-12-07 | 2017-04-26 | 北京华夏电通科技有限公司 | Data caching method and system |
CN107231395A (en) * | 2016-03-25 | 2017-10-03 | 阿里巴巴集团控股有限公司 | Date storage method, device and system |
CN107506445A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | The response method and device of data query in cloud data system |
CN108073592A (en) * | 2016-11-10 | 2018-05-25 | 惠州市康冠科技有限公司 | Judge sequence number whether repeat method and television set sequence number wiring method |
CN108153783A (en) * | 2016-12-06 | 2018-06-12 | 腾讯科技(北京)有限公司 | A kind of method and apparatus of data buffer storage |
CN110417890A (en) * | 2019-07-30 | 2019-11-05 | 深圳市瑞云科技有限公司 | A method of promoting the biography verification of enterprise's rendering client file second |
CN110598138A (en) * | 2018-06-12 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Cache-based processing method and device |
CN112187950A (en) * | 2020-10-10 | 2021-01-05 | 深圳市智百威科技发展有限公司 | Method for solving slow remote data access |
CN112527765A (en) * | 2020-12-01 | 2021-03-19 | 银联智策顾问(上海)有限公司 | Data migration method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257485A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | Web applied system and method |
CN101426026A (en) * | 2008-09-17 | 2009-05-06 | 北京六维世纪网络技术有限公司 | Method and system for data synchronization between multiple servers |
-
2011
- 2011-11-17 CN CN2011103644365A patent/CN102521252A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257485A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | Web applied system and method |
CN101426026A (en) * | 2008-09-17 | 2009-05-06 | 北京六维世纪网络技术有限公司 | Method and system for data synchronization between multiple servers |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346345A (en) * | 2013-07-24 | 2015-02-11 | 中兴通讯股份有限公司 | Data storage method and device |
CN104346345B (en) * | 2013-07-24 | 2019-03-26 | 上海中兴软件有限责任公司 | The storage method and device of data |
CN103414776A (en) * | 2013-08-14 | 2013-11-27 | 上海兆民云计算科技有限公司 | Method for copying content in desktop cloud system external device room |
CN104615763A (en) * | 2015-02-13 | 2015-05-13 | 百度在线网络技术(北京)有限公司 | Intermediate table updating method and device |
CN104615763B (en) * | 2015-02-13 | 2018-02-13 | 百度在线网络技术(北京)有限公司 | Middle table updating method and device |
CN107231395A (en) * | 2016-03-25 | 2017-10-03 | 阿里巴巴集团控股有限公司 | Date storage method, device and system |
CN108073592A (en) * | 2016-11-10 | 2018-05-25 | 惠州市康冠科技有限公司 | Judge sequence number whether repeat method and television set sequence number wiring method |
CN108153783A (en) * | 2016-12-06 | 2018-06-12 | 腾讯科技(北京)有限公司 | A kind of method and apparatus of data buffer storage |
CN108153783B (en) * | 2016-12-06 | 2020-10-02 | 腾讯科技(北京)有限公司 | Data caching method and device |
CN106599152A (en) * | 2016-12-07 | 2017-04-26 | 北京华夏电通科技有限公司 | Data caching method and system |
CN106506704A (en) * | 2016-12-29 | 2017-03-15 | 北京奇艺世纪科技有限公司 | A kind of buffering updating method and device |
CN107506445A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | The response method and device of data query in cloud data system |
CN110598138A (en) * | 2018-06-12 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Cache-based processing method and device |
CN110417890A (en) * | 2019-07-30 | 2019-11-05 | 深圳市瑞云科技有限公司 | A method of promoting the biography verification of enterprise's rendering client file second |
CN112187950A (en) * | 2020-10-10 | 2021-01-05 | 深圳市智百威科技发展有限公司 | Method for solving slow remote data access |
CN112527765A (en) * | 2020-12-01 | 2021-03-19 | 银联智策顾问(上海)有限公司 | Data migration method and device |
CN112527765B (en) * | 2020-12-01 | 2024-05-24 | 银联智策顾问(上海)有限公司 | Data migration method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102521252A (en) | Access method of remote data | |
CN101876983B (en) | Method for partitioning database and system thereof | |
KR101434887B1 (en) | Cache system and cache service providing method using network switches | |
CN101160797B (en) | Method for subscribing data dynamically | |
CN102291416A (en) | Two-way synchronizing method and system of client-side and server-side | |
CN102739720A (en) | Distributed cache server system and application method thereof, cache clients and cache server terminals | |
CN102255752A (en) | Configuration management system and method of server cluster | |
CN103095758B (en) | A kind of method processing file data in distributed file system and this system | |
CN105184540A (en) | Intelligent express delivery cabinet system control method | |
CN102867070A (en) | Method for updating cache of key-value distributed memory system | |
CN103200278A (en) | Source station file updating and releasing method and cache file updating method | |
CN103457960A (en) | Method and system for loading file in webpage game | |
CN105183496A (en) | Method for automatically upgrading and pushing software based on domestic CPU and operating system | |
CN105635196A (en) | Method and system of file data obtaining, and application server | |
CN103227826A (en) | Method and device for transferring file | |
CN102737065A (en) | Method and device for acquiring data | |
WO2020108544A1 (en) | Method, apparatus and system for synchronously caching data | |
CN102487375B (en) | Method, device and system for downloading videos online | |
CN103853714A (en) | Data processing method and device | |
CN103248666A (en) | System, method and device for offline resource download | |
CN103699557A (en) | Report processing method and report processing system | |
CN103761102A (en) | Unified data service platform and implementation method thereof | |
CN103412869A (en) | Method for batch pushing of server data updating | |
CN102750368A (en) | High-speed importing method of cluster data in data base | |
CN105611484A (en) | M2M node management method and M2M node management 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 | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120627 |