CN103186552B - The method and system of client-access data in a kind of business service - Google Patents
The method and system of client-access data in a kind of business service Download PDFInfo
- Publication number
- CN103186552B CN103186552B CN201110446794.0A CN201110446794A CN103186552B CN 103186552 B CN103186552 B CN 103186552B CN 201110446794 A CN201110446794 A CN 201110446794A CN 103186552 B CN103186552 B CN 103186552B
- Authority
- CN
- China
- Prior art keywords
- data
- storage area
- client
- user
- business service
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Storage Device Security (AREA)
Abstract
The present invention discloses the method and system of client-access data in a kind of business service, described method comprises: step 1, and when users log on, client carries out login authentication by server, after login authentication is passed through, create the storage area corresponding to described user in the buffer; Step 2, when the business service requests data reading that user is corresponding, the client data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, perform step 3; Step 3, data, by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by client.The present invention solves when providing business service for user, frequently from database, reads data, produces processing pressure to database, and then the problem causing system processing power lower.
Description
Technical field
The present invention relates to computer network field, particularly the method and system of client-access data in a kind of business service.
Background technology
The development of internet thereupon, network relates to the various aspects of the modern life.In various applications, a large amount of usage data storehouse, network from the bank of financial industry, the ticket sale system of transportation industry, the national residence management of public security system etc., wherein all relate to database application.Due to feature or the service distribution of geographic distribution between above-mentioned enterprise or industry unit, make to have multiple webserver in an enterprise or industry.In prior art, multiple step format technical scheme is adopted to realize business service.
Distributed computing technology scheme is deployed on different positions user interface, control desk service, data base administration three levels.Wherein user interface is the function that client realizes, and control desk service is that data management is realized by a private database server by a special server realization.
In prior art, the method of silver-colored light (silverlight) accessing database of Microsoft, by MVVM (Model-View-ViewModel, Model-View-view model) as presentation layer for user provides displaying, by WCF (WindowsCommunicationFoundation, the data communication interface of Microsoft's exploitation), and Data Persistence Layer and database carry out alternately.Adopt this technical scheme, when providing business service for user, needing frequently from database, to read data, pressure is produced to database, because the processing power of database is not enough, cause the processing power of whole system lower.
Summary of the invention
The method and system of client-access data in a kind of business service provided by the invention, to solve when providing business service for user, frequently from database, read data, processing pressure is produced to database, and then the problem causing system processing power lower.
The method of client-access data in a kind of business service disclosed by the invention, described method comprises:
Step 1, when users log on, client carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer;
Step 2, when the business service requests data reading that user is corresponding, the client data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, perform step 3;
Step 3, data, by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by client.
Wherein, also comprise before described step 1:
Step 21, when client terminal start-up, creates the public storage area corresponding to described client in the buffer;
Step 22, client reads public information data by server from database, and described public information data is stored into described public storage area;
The described client data that search request reads from storage area comprise further:
Step 23, the client data that search request reads from public storage area and storage area corresponding to described user.
Wherein, also comprise after described step 3:
Data in storage area corresponding for described user, when user exits client or again logs in client, are deleted by step 31.
Wherein, described data are stored into storage area corresponding to user before also comprise:
Step 41, whether the data read according to configuration determination allow local storage, if so, then perform described operation data being stored into storage area corresponding to user, otherwise, forbid data to be stored into buffer memory.
Wherein, describedly data submitted to business service comprise further:
Step 51, converts data to the data type that business service is used;
Data after conversion are submitted to business service by step 52.
Wherein, also comprise after described step 1:
Step 61, reads the information of described user from database by server, the information of reading is stored into storage area corresponding to described user.
Wherein, the described storage area that data are stored into user corresponding comprises further:
Data are stored into storage area corresponding to user in XML mode by step 71.
Wherein, the data read from server are data record;
The described storage area that data are stored into user corresponding comprises further:
Step 81, with the key word of the data record stored for major key, is recorded as value with data, and composition key-value pair, is stored into storage area by Hash table.
The invention also discloses the system of client-access data in a kind of business service, described system comprises: database, server, client,
Described client comprises:
Storage area creation module, for when users log on, carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer;
Local data read module, during for the business service requests data reading corresponding as user, the data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, call remote data read module;
Data, for by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by remote data read module.
Wherein, described client also comprises:
Public information memory module, for when client terminal start-up, creates the public storage area corresponding to described client in the buffer, reads public information data, described public information data is stored into described public storage area by server from database;
Described local data read module is further used for the data that search request reads from public storage area and storage area corresponding to described user when the data that search request from storage area reads.
The beneficial effect of the embodiment of the present invention is: by by data in database at client-cache, the access times to database can be reduced, and then reduce the processing pressure of database, system processing power is provided; By when client terminal start-up, store public information in the buffer, the cache resources that the information that can reduce storage takies; By after user login validation success, read data and carry out client local cache, the security of user profile can be ensured; By when user exits or again log in, delete user profile in buffer memory, user information safety can be improved further, avoid this user profile to be accessed by other users of subsequent login.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for client-access data in a kind of business service of the present invention;
Fig. 2 be the embodiment of client-access data in business service of the present invention realize scene schematic diagram;
Fig. 3 is the process flow diagram of the embodiment of client-access data in business service of the present invention;
Fig. 4 is the structural drawing of the system of client-access data in a kind of business service of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, it is the process flow diagram of the method for client-access data in a kind of business service of the present invention.
Described method comprises:
Step S100, when users log on, client carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer.
Step S200, when the business service requests data reading that user is corresponding, the client data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, perform step S300.
Step S300, data, by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by client.
Wherein, data are stored into storage area corresponding to user in XML mode.
Wherein, adopt Hash table to store data, the data read from server are data record; With the key word of the data record stored for major key, be recorded as value with data, composition key-value pair, is stored into storage area by Hash table.
In one preferably embodiment, public information data is stored in buffer memory, to reduce taking cache resources.
Also comprise before described step S100: when client terminal start-up, create the public storage area corresponding to this client in the buffer, client reads public information data by server from database, and described public information data is stored into described public storage area.
Wherein, public information data is for each user provides the information data needed during business service.
When the business service requests data reading that user is corresponding, the client data that search request reads from public storage area and storage area corresponding to this user, if found, then read data, data are submitted to business service, otherwise, perform step S300.
In one preferably embodiment, when user exits client or again logs in client, the data in storage area corresponding for this user are deleted.
Can user information safety be improved by the method, avoid this user profile to be accessed by other users of subsequent login.
In one preferably embodiment, before storing data in the buffer, forbid storing in client-cache according to the configuration data high to level of security, improve the security of user profile further.
Described data are stored into storage area corresponding to user before also comprise: whether the data read according to configuration determination allow local storage, if, then perform described operation data being stored into storage area corresponding to user, otherwise, forbid data to be stored into buffer memory.
Wherein, data are data record, be recorded in database arrange level of security for every bar data, such as, senior, middle rank, rudimentary.In client, each user is configured to the level of security allowing to store in local cache, such as middle rank, then level of security is that middle rank and rudimentary data record allow to store in client local cache; Be that senior data recording prohibition stores in client local cache for level of security.
Client is by data in server reading database, after data are submitted to business service, the level of security that the permission of comparing the level of security of this data record and the user of configuration stores in local cache, if the level of security of data record is higher, then forbids data to be stored into buffer memory; Otherwise, data are stored into the storage area that user is corresponding.
In one preferably embodiment, describedly data are submitted to business service comprise further: convert data to the data type that business service is used; Data after conversion are submitted to business service.
In one preferably embodiment, client corresponds to user, reads the data of user profile in advance, to improve response speed from database.
Also comprise the information being read described user by server from database after described step S100, the information of reading is stored into storage area corresponding to described user.
See Fig. 2, for client-access data in business service of the present invention embodiment realize scene schematic diagram.
Client is by the MVVM (Model-View-ViewModel of presentation layer, Model-View-view model) provide displaying for user, by exchanging between data communication layer WCF (WindowsCommunicationFoundation, the data communication interface of Microsoft's exploitation) and server.Server is undertaken by Data Persistence Layer and database alternately.
Fig. 3 is the process flow diagram of the embodiment of client-access data in business service of the present invention.
Wherein, when storing data in storage area, store the key word of data record, store data record in XML mode, wall scroll data record can be stored, also can store the set of many data records.
Step S301, when client terminal start-up, create the public storage area corresponding to this client in the buffer, client reads public information data by server from database, and public information data is stored into described public storage area.
Public storage area is created by IsolatedStorageFileStream in silver-colored light (silverlight).
Step S302, when users log on, client carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer.
The storage area of user is created by IsolatedStorageFile in silver-colored light (silverlight).
Step S303, client reads the information of this user from database by server, the information of reading is stored into storage area corresponding to this user.
The information of described user comprises user's name, the multiple attribute information such as classification.
Step S304, when the business service requests data reading that user is corresponding, the client data that search request reads from public storage area and storage area corresponding to user, if found, then read data, perform step S305, otherwise, perform step S306.
Step S305, converts data to the data type that business service is used, and the data after conversion are submitted to business service.
Step S306, client, by data in server reading database, converts data to the data type that business service is used, and the data after conversion are submitted to business service.
Step S307, judges that the level of security of the data record read is whether higher than the level of security that the permission of the user of configuration stores in local cache, if so, then performs step S308, otherwise, perform step S309.
Step S308, operation terminates.
The data of reading are stored into storage area corresponding to user by step S309.
Wherein, when user exits client or again logs in client, the data in storage area corresponding for this user are deleted.
Can user information safety be improved by the method, avoid this user profile to be accessed by other users of subsequent login.
See Fig. 4, it is the structural drawing of the system of client-access data in a kind of business service.
Described system comprises: database 300, server 200, client 100.
Described client 100 comprises:
Storage area creation module 110, for when users log on, carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer;
Local data read module 120, during for the business service requests data reading corresponding as user, the data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, call remote data read module 130;
Data, for by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by remote data read module 130.
Further, described client also comprises:
Public information memory module, for when client terminal start-up, creates the public storage area corresponding to described client in the buffer, reads public information data, described public information data is stored into described public storage area by server from database;
Described local data read module is further used for the data that search request reads from public storage area and storage area corresponding to described user when the data that search request from storage area reads.
Further, described system also comprises:
Data in storage area corresponding for described user, during for exiting client as user or again logging in client, are deleted by data removing module.
Further, whether the data that described remote data read module is also used for reading according to configuration determination before data being stored into storage area corresponding to user allow local storage, if, then perform described operation data being stored into storage area corresponding to user, otherwise, forbid data to be stored into buffer memory.
Further, described remote data read module is further used for when data being submitted to business service converting data to business service data type used, and the data after conversion are submitted to business service;
Described local data read module is further used for when data being submitted to business service converting data to business service data type used, and the data after conversion are submitted to business service.
Wherein, data are stored into storage area corresponding to user in XML mode.
Wherein, described key word data being stored into the data record that storage area corresponding to user comprises storing further is major key, is recorded as value with data, and composition key-value pair, is stored into storage area by Hash table.
Further, the information of reading also for being read the information of described user from database by server, is stored into storage area corresponding to described user by described storage area creation module.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
Claims (8)
1. the method for client-access data in business service, it is characterized in that, described method comprises:
Step 1, when users log on, client carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer;
Step 2, when the business service requests data reading that user is corresponding, the client data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, perform step 3;
Step 3, data, by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by client;
Also comprise before described step 1:
Step 21, when client terminal start-up, creates the public storage area corresponding to described client in the buffer;
Step 22, client reads public information data by server from database, and described public information data is stored into described public storage area;
The described client data that search request reads from storage area comprise further:
Step 23, the client data that search request reads from public storage area and storage area corresponding to described user.
2. the method for client-access data in business service according to claim 1, is characterized in that,
Also comprise after described step 3:
Data in storage area corresponding for described user, when user exits client or again logs in client, are deleted by step 31.
3. the method for client-access data in business service according to claim 1, is characterized in that,
Described data are stored into storage area corresponding to user before also comprise:
Step 41, whether the data read according to configuration determination allow local storage, if so, then perform described operation data being stored into storage area corresponding to user, otherwise, forbid data to be stored into buffer memory.
4. the method for client-access data in business service according to claim 1, is characterized in that,
Describedly data submitted to business service comprise further:
Step 51, converts data to the data type that business service is used;
Data after conversion are submitted to business service by step 52.
5. the method for client-access data in business service according to claim 1, is characterized in that,
Also comprise after described step 1:
Step 61, reads the information of described user from database by server, the information of reading is stored into storage area corresponding to described user.
6. the method for client-access data in business service according to claim 1, is characterized in that,
The described storage area that data are stored into user corresponding comprises further:
Data are stored into storage area corresponding to user in XML mode by step 71.
7. the method for client-access data in business service according to claim 1, is characterized in that,
The data read from server are data record;
The described storage area that data are stored into user corresponding comprises further:
Step 81, with the key word of the data record stored for major key, is recorded as value with data, and composition key-value pair, is stored into storage area by Hash table.
8. the system of client-access data in business service, it is characterized in that, described system comprises: database, server, client,
Described client comprises:
Storage area creation module, for when users log on, carries out login authentication by server, after login authentication is passed through, creates the storage area corresponding to described user in the buffer;
Local data read module, during for the business service requests data reading corresponding as user, the data that search request reads from storage area, if found, then read data, data are submitted to business service, otherwise, call remote data read module;
Data, for by data in server reading database, are submitted to business service, and data are stored into storage area corresponding to user by remote data read module;
Described client also comprises:
Public information memory module, for when client terminal start-up, creates the public storage area corresponding to described client in the buffer, reads public information data, described public information data is stored into described public storage area by server from database;
Described local data read module is further used for the data that search request reads from public storage area and storage area corresponding to described user when the data that search request from storage area reads.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110446794.0A CN103186552B (en) | 2011-12-28 | 2011-12-28 | The method and system of client-access data in a kind of business service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110446794.0A CN103186552B (en) | 2011-12-28 | 2011-12-28 | The method and system of client-access data in a kind of business service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103186552A CN103186552A (en) | 2013-07-03 |
CN103186552B true CN103186552B (en) | 2016-04-06 |
Family
ID=48677721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110446794.0A Active CN103186552B (en) | 2011-12-28 | 2011-12-28 | The method and system of client-access data in a kind of business service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103186552B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607409A (en) * | 2013-11-29 | 2014-02-26 | 中国科学院深圳先进技术研究院 | Method for protecting cloud storage data and cloud server |
CN104866531A (en) * | 2015-04-27 | 2015-08-26 | 交通银行股份有限公司 | Method and system for quickly accessing information data of clients of banks |
CN105490842B (en) * | 2015-11-30 | 2018-12-18 | 用友网络科技股份有限公司 | A kind of method based on the dialogue of MVVM model management in online service system |
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 |
CN107018174B (en) * | 2016-12-27 | 2020-01-03 | 阿里巴巴集团控股有限公司 | Unitized system service processing method and device and business processing system |
CN110019362B (en) * | 2017-11-08 | 2021-08-13 | 中移(苏州)软件技术有限公司 | Method and device for accessing database |
CN110166726B (en) * | 2017-11-18 | 2021-05-11 | 单正建 | Method for automatically identifying user, video terminal and video conference system |
CN108763443A (en) * | 2018-05-25 | 2018-11-06 | 众安信息技术服务有限公司 | block chain account processing method and device |
CN108777718B (en) * | 2018-06-22 | 2021-03-23 | 创新先进技术有限公司 | Method and device for accessing read-write-more-less system through client side by service system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221582A (en) * | 2008-01-29 | 2008-07-16 | 北京北方烽火科技有限公司 | Method for implementing embedded system data base |
CN102012931A (en) * | 2010-12-01 | 2011-04-13 | 北京瑞信在线系统技术有限公司 | Filter cache method and device, and cache system |
CN102012907A (en) * | 2010-11-10 | 2011-04-13 | 上海光芒科技有限公司 | Method and system for cache at browser client side |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9311358B2 (en) * | 2008-12-18 | 2016-04-12 | Teradata Us, Inc. | Smart cache component for demand chain management |
-
2011
- 2011-12-28 CN CN201110446794.0A patent/CN103186552B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221582A (en) * | 2008-01-29 | 2008-07-16 | 北京北方烽火科技有限公司 | Method for implementing embedded system data base |
CN102012907A (en) * | 2010-11-10 | 2011-04-13 | 上海光芒科技有限公司 | Method and system for cache at browser client side |
CN102012931A (en) * | 2010-12-01 | 2011-04-13 | 北京瑞信在线系统技术有限公司 | Filter cache method and device, and cache system |
Also Published As
Publication number | Publication date |
---|---|
CN103186552A (en) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103186552B (en) | The method and system of client-access data in a kind of business service | |
CN109787948B (en) | Access method and authority management method and device for shared space | |
US20180152515A1 (en) | File Storage Method and Apparatus for Instant Communication Messages | |
CN102541638B (en) | Resource management system and method | |
US11425571B2 (en) | Device configuration method, apparatus and system | |
CN112069536A (en) | Method and equipment for realizing desensitization access of database data | |
CN102027486A (en) | Cell-based security representation for data access | |
US20160269483A1 (en) | Method and Device for Message Synchronization | |
CN104106241A (en) | System and Method to Generate Secure Name Records | |
CN110245304B (en) | Data sharing method, device and computer readable medium | |
CN103488791A (en) | Data access method and system and data warehouse | |
CN112819617B (en) | Data uplink method and device, electronic equipment and storage medium | |
CN105631035A (en) | Data storage method and device | |
CN106033461A (en) | Sensitive information query method and apparatus | |
US20110154376A1 (en) | Use of Web Services API to Identify Responsive Content Items | |
CN112925954A (en) | Method and apparatus for querying data in a graph database | |
CN115329381A (en) | Sensitive data-based analysis and early warning method and device, computer equipment and medium | |
CN110175316B (en) | Media number interaction method, system and storage medium based on blockchain | |
US20150154606A1 (en) | System, method, and software for enterprise-wide complaint aggregation | |
CN103139366B (en) | Mobile terminal and data protection method thereof | |
CN117032634A (en) | Component processing method and system | |
CN113268506B (en) | Query method and device of cache database, electronic equipment and readable storage medium | |
KR101235042B1 (en) | Method for providing data included in building information modeling data file, recording medium thereof, and system using the method | |
CN102223399B (en) | Contact person session presentation method based on intelligent terminal and system thereof | |
CN114265759A (en) | Tracing method and system after data information leakage and electronic equipment |
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 | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |
|
CP02 | Change in the address of a patent holder |