CN110968603A - Data access method and device - Google Patents

Data access method and device Download PDF

Info

Publication number
CN110968603A
CN110968603A CN201911200031.0A CN201911200031A CN110968603A CN 110968603 A CN110968603 A CN 110968603A CN 201911200031 A CN201911200031 A CN 201911200031A CN 110968603 A CN110968603 A CN 110968603A
Authority
CN
China
Prior art keywords
cache
data
class
configuration
configuration parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911200031.0A
Other languages
Chinese (zh)
Other versions
CN110968603B (en
Inventor
余庆丹
钟艳辉
吴捷雄
安宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911200031.0A priority Critical patent/CN110968603B/en
Publication of CN110968603A publication Critical patent/CN110968603A/en
Application granted granted Critical
Publication of CN110968603B publication Critical patent/CN110968603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data access method and a data access device, wherein the corresponding relation of a data access class, a cache configuration parameter and a corresponding cache strategy class is stored in a preset cache configuration parameter area, wherein the cache configuration parameter comprises: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item; therefore, when a data access request sent by a user is received, because the data access request is attached with a data access class with cache annotation, the cache table identifier to which the data access class belongs can be obtained, the cache configuration parameter corresponding to the cache table identifier is searched from the preset cache configuration parameter area, the cache policy class corresponding to the cache type configuration item in the cache configuration parameter is called to execute data query operation, and the data query result is fed back to the user.

Description

Data access method and device
Technical Field
The present application relates to the field of data caching technologies, and in particular, to a data access method and apparatus.
Background
The overseas core system of the China Bank provides services for all overseas peripheral systems in a distributed service mode, and the method comprises the following steps: application modules such as loans, deposits, payments, batches, debit cards, tellers and the like have complex and huge transactions and access to databases frequently, so that the transaction processing performance of the overseas core system is influenced.
At present, the problem of transaction processing performance caused by frequent database access is mainly solved through a cache technology. For a complex system, since the number of data access scenarios involved is very large, different data access scenarios may require different caching methods, for example: for system parameters with small data volume and infrequent change, using a fast and efficient memory cache; for the large data volume and the need of sharing transaction data by a plurality of applications, Redis cache of cache hot spot data is used; for hot spot data of a single transaction, thread caching is used. And the cache modes corresponding to different data access requests are also different, so in order to meet the query requirements of different data access types, system developers need to respectively develop codes for different types of cache modes, and after the codes corresponding to the cache modes required by the application service are generated, the application service is started to realize data access.
In the prior art, when a cache mode needs to be added, modified or abnormal cache occurs, a shutdown notice needs to be issued, a system developer redevelops a code, and after the code development is completed, an application service needs to be restarted to realize normal access of data, so that normal access of the data cannot be guaranteed.
Disclosure of Invention
The application provides a data access method and a data access device, and aims to solve the problems that in the prior art, when a cache mode needs to be added, modified or abnormal cache occurs, due to the fact that an outage notice needs to be issued, a system developer redevelops a code, after the code development is completed, normal access of data can be achieved only by restarting an application service, and then normal access of the data cannot be guaranteed.
In order to achieve the above object, the present application provides the following technical solutions:
a method of data access, comprising:
receiving a data access request sent by a user, wherein the data access request is attached with a data access class of a cache annotation;
obtaining a cache table identifier to which the data access class belongs, and searching a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship among each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item;
and calling the cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
Preferably, the method further comprises the following steps:
when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, calling a database cache strategy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
Preferably, the method further comprises the following steps:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
Preferably, the process of constructing the preset cache configuration parameter area includes:
when the application service is started, loading all cache configuration parameters of a cache configuration parameter table from a preset database;
calling the application service initialization loading configuration item and the cache data initialization configuration item in each cache configuration parameter to carry out the cache data customization initialization operation;
and establishing a corresponding relation among the access types of the databases, the cache configuration parameters and the corresponding cache strategy types, and constructing a preset cache configuration parameter area.
Preferably, before receiving the data access request sent by the user, the method further includes:
creating nodes for transmitting each configuration item change in the cache configuration parameter table and all child nodes thereof for the cache configuration parameters in the preset cache configuration parameter area;
monitoring data change events of the node and all child nodes thereof;
and when the node and all the child node change messages thereof are received, deleting the configuration items in the preset cache configuration parameter area, and reloading each configuration item in the cache configuration parameter table to the preset cache configuration parameter area.
A data access device, comprising:
the first processing unit is used for receiving a data access request sent by a user, and the data access request is attached with a data access class with a cache annotation;
a second processing unit, configured to obtain a cache table identifier to which the data access class belongs, and search for a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship between each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item;
and the third processing unit is used for calling the cache policy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
Preferably, the third processing unit is further configured to:
when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not found, the cache configuration parameter is used for calling a database cache policy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
Preferably, the third processing unit is further configured to:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
A storage medium comprising a stored program, wherein a device on which the storage medium is located is controlled to perform a data access method as described above when the program is run.
An electronic device comprising at least one processor, and at least one memory, bus connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the data access method as described above.
The method stores the corresponding relation among each data access class, the cache configuration parameters and the corresponding cache strategy class in a preset cache configuration parameter area, wherein the cache configuration parameters comprise: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item; therefore, when a data access request sent by a user is received, because the data access request is attached with a data access class with a cache annotation, a cache table identifier to which the data access class belongs can be obtained, then a cache configuration parameter corresponding to the cache table identifier is searched from a preset cache configuration parameter area, finally, a cache policy class corresponding to a cache type configuration item in the cache configuration parameter is called to execute data access operation, and a data query result is fed back to the user.
It can be seen from the above process that the cache configuration parameters and the cache policies are stored separately, therefore, when the cache manner needs to be added, modified or abnormal, only the cache configuration parameters in the preset cache configuration parameter area need to be correspondingly added or modified, in addition, the cache manner can be conveniently added or modified at any time, so that the system developer can modify the cache parameters at any time without affecting normal transactions, the development process can be simplified, the normal access of data can be ensured when the cache is abnormal, and the issue of the shutdown notice can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a data access method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of yet another data access method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of yet another data access method disclosed in an embodiment of the present application;
fig. 4 is a specific flowchart of a process for constructing a preset cache configuration parameter area disclosed in the embodiment of the present application;
FIG. 5 is a schematic structural diagram of a cache module in a system according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a data access device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The application provides a data access method and device, which are applied to application services of overseas core systems, and in order to meet the query requirements of different data access classes, system developers need to uniformly develop codes according to different types of cache modes, and after codes corresponding to the cache modes required by the application services are generated, the application services are started, so that data access is realized.
The invention of the present application aims to: the problem that in the prior art, when a cache mode needs to be added, modified or abnormal cache occurs in the system transaction process, a system developer redevelops a code due to the fact that an outage notice needs to be issued, and after the code development is completed, application service needs to be restarted to achieve normal access of data, and then normal access of the data cannot be guaranteed is solved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a flowchart illustration of a data access method, where the data access method specifically includes the following steps:
s101: receiving a data access request sent by a user, wherein the data access request is attached with a data access class with a cache annotation.
The method comprises the steps that a user sends a data access request to an application service of an overseas core system, and when the data access request sent by the user is received, a data access class in the data access request is obtained according to a cache annotation, wherein the data access class has a corresponding unique cache type.
S102: and obtaining the cache table identification to which the data access class belongs, and searching the cache configuration parameter corresponding to the cache table identification from a preset cache configuration parameter area.
The preset cache configuration parameter area is pre-stored with corresponding relations among each data access class, cache configuration parameters and corresponding cache policy classes, and the cache configuration parameters include: the cache table identifies a configuration item, a cache type configuration item, an application service initialization loading configuration item, a query option configuration item and a cache data initialization configuration item.
In this embodiment of the present application, the cache policy classes generally include four types, specifically: a memory caching policy class (memorystoreStrength), a Redis caching policy class (RedisStoreStrategy), a thread caching policy class (threadStoreStrategy), and a database access policy class (DataBaseStotoreStrategy).
In the embodiment of the present application, a cached data table needs to be used, and corresponding cache configuration parameters are configured in a database, and fields mainly included in the cache configuration parameter table include those shown in table 1:
TABLE 1
Figure BDA0002295635760000061
Figure BDA0002295635760000071
If a new cache policy class needs to be added, only a cache type configuration item needs to be added in a cache configuration parameter table of the database, that is, a cache type configuration item is added, a new type identifier is added, and a cache policy common interface is realized by adding a specific cache policy class.
If the current cache policy class needs to be replaced, only the cache type configuration item needs to be modified in the cache configuration parameter table of the database, that is: the cache type configuration parameter table of the database is modified into a Redis cache policy, and if the current memory cache needs to be modified into the Redis cache, the cache type configuration item in the cache configuration parameter table of the database needs to be modified correspondingly, that is, the memory cache policy is modified into the Redis cache policy.
S103: and calling the cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
It should be noted that, after determining a specific cache type according to the cache type configuration item, the different cache type configuration items correspond to different cache policy classes, and then only the cache policy class corresponding to the cache type configuration item in the cache configuration parameters needs to be called according to the cache type configuration item to perform a data query operation, for example: and determining that the specific cache type is a memory cache strategy type according to the cache type configuration item, calling the corresponding memory cache strategy type to execute data query operation, and finally feeding back a data query result obtained by executing the data query operation to a user.
In the data access method provided in the embodiment of the present application, the corresponding relationship between each data access class, the cache configuration parameter, and the corresponding cache policy class is stored in the preset cache configuration parameter area, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item; thus, when receiving a data access request sent by a user, because the data access request is attached with a data access class with cache annotation, the cache table identifier to which the data access class belongs can be obtained, then the cache configuration parameter corresponding to the cache table identifier is searched from the preset cache configuration parameter area, finally, the cache policy class corresponding to the cache type configuration item in the cache configuration parameter is called to perform data access operation, and the data query result is fed back to the user, as can be seen from the above process, the cache configuration parameter and the cache policy class are stored respectively, therefore, when the cache mode needs to be added, the cache mode is modified or the cache is abnormal, only the cache configuration parameter in the preset cache configuration parameter area needs to be correspondingly added or modified, in addition, the cache mode can be conveniently added or modified at any time, so that a system developer can modify the cache parameter at any time without affecting normal transactions, the issue of the shutdown bulletin is avoided, and the application service is restarted, so that the normal access of the data is ensured.
Based on the above, in other implementations, in addition to the above steps 101 to 103, as shown in fig. 2, the data access method may further include the following steps:
s104: when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, calling a database cache strategy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
In this embodiment of the present application, after the cache policy class corresponding to the cache type configuration item in the cache configuration parameter is called to perform a data QUERY operation, a data QUERY result needs to be fed back to the user, and if the data QUERY result is empty, whether to perform a database QUERY operation is determined according to a QUERY OPTION configuration item QUERY _ OPTION in the cache configuration parameter, that is: if the QUERY OPTION configuration item QUERY _ OPTION in the cache configuration parameters is to QUERY the database when the QUERY cache is not found, the database cache policy class needs to be called to perform the database QUERY operation, and finally the database QUERY operation is performed, and the obtained data QUERY result is fed back to the user.
Based on the above, as shown in fig. 3, an embodiment of the present application provides a flowchart of another data access method, where the data access method includes the following steps:
s301: receiving a data access request sent by a user, wherein the data access request is attached with a data access class with a cache annotation.
S302: and obtaining the cache table identification to which the data access class belongs, and searching the cache configuration parameter corresponding to the cache table identification from a preset cache configuration parameter area.
S303: and calling the cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
S304: when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, calling a database cache strategy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
In the embodiment of the present application, the contents of the above steps 301 to 304 are the same as those of the steps S101 to S104, and specific contents can be referred to the steps S101 to S104, which are not described in detail herein.
S305: and monitoring the operation parameters of the data query operation corresponding to each cache strategy class.
It should be noted that, the memory space corresponding to each buffer policy class in the application service is limited, and therefore, in order to ensure normal operation of each buffer manner, the operation parameters of the data query operation corresponding to each buffer policy class in the application service need to be monitored in real time.
S306: and when the monitoring value exceeds a preset threshold value, determining that the data query operation of the corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class.
In this embodiment of the application, when the monitored value exceeds the preset threshold, it is determined that a data query operation of the corresponding cache policy class is abnormal, for example, if the total amount of the memory cache exceeds the set size, it is determined that a service of the query operation of the memory cache is abnormal, and a cache type configuration item corresponding to the memory cache policy class needs to be changed into a database access cache policy class.
S307: and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
It should be noted that, continuing with the above description as an example, the cache type configuration item corresponding to the memory cache policy class is changed into the database access policy class, and then the database access policy class corresponding to the cache type configuration item in the cache configuration parameters is called according to the cache type configuration item to perform the data query operation, and finally the data query result obtained by performing the data query operation is fed back to the user.
According to the data access method provided by the embodiment of the application, developers or maintainers can directly modify cache configuration parameters to realize flexible switching of cache modes, and can also directly refresh the cache of a specific data table.
Based on the above, as shown in fig. 4, the process of constructing the preset cache configuration parameter area in the embodiment of the present application specifically includes the following steps:
s401: and when the application service is started, loading all cache configuration parameters of the cache configuration parameter table from a preset database.
S402: calling the application service initialization loading configuration item and the cache data initialization configuration item in each cache configuration parameter to carry out the cache data customization initialization operation;
s403: and establishing a corresponding relation among the access types of the databases, the cache configuration parameters and the corresponding cache strategy types, and constructing a preset cache configuration parameter area.
It should be noted that, when the application service is started, ALL DATA access classes that implement the common DATA access interface may determine whether to execute cache DATA initialization operation according to the parameter value of the query option configuration item ALL _ LOAD obtained in the cache configuration parameter area, and call a method for loading cache DATA to implement customized loading of cache DATA according to the cache DATA initialization configuration item LOAD _ DATA _ SQL in the cache configuration parameters of the cache configuration parameter area. And finally establishing a corresponding relation among the access types of the databases, the cache configuration parameters and the corresponding cache strategy types, and constructing a preset cache configuration parameter area.
Further, based on the above, since the overseas core system includes not only one application service, but also provides services for all overseas peripheral systems in a distributed service manner, in order to implement data synchronization between the application services, before receiving a data access request sent by a user, the method further includes:
and creating nodes for transmitting the change of each configuration item in the cache configuration parameter table and all child nodes thereof for the cache configuration parameters in the preset cache configuration parameter area.
And monitoring data change events of the node and all child nodes thereof.
And when the node and all the child node change messages thereof are received, deleting the configuration items in the preset cache configuration parameter area, and reloading each configuration item in the cache configuration parameter table to the preset cache configuration parameter area.
According to the embodiment of the application, for any one cache mode, the cache configuration parameter area can inform all application services subscribing data change of each sub-node to call the corresponding cache strategy class to refresh cache data by sending data modification information to the node with each configuration item changed and all the sub-nodes thereof, so that cache data can be synchronized among all distributed application services in a cluster, unified management on the use of the cache mode in a system is realized, the code readability and the cache controllability are improved, and meanwhile, the workload of system developers is reduced.
As shown in fig. 5, a schematic structural diagram of a cache component in a system according to an embodiment of the present application is disclosed. System developers design common cache components from an extensible, easy to maintain, highly available perspective.
Firstly, cache configuration parameter items need to be defined, and the configuration parameters need to be quickly accessed and can be refreshed in a distributed service cluster in real time. Secondly, a cache storage strategy interface and a cache synchronization interface are designed according to a strategy mode in a design mode, and a specific cache strategy class required by the system is realized. Finally, a public access interface needs to be provided for a specific data access request, so that an application can access the cache through the cache component of the application.
As shown in fig. 5, a CCD (CACHE CONFIG DATA, CACHE parameter configuration table); ZOOKEEPER cluster is used for transmitting data updating information, nodes on the ZOOKEEPER cluster have one-to-one correspondence with a database table, and process information in a subscription/publishing mode.
Specifically, the ccdn (cache CONFIG DATA node) and a node corresponding to the cache parameter configuration table created on the zokepier cluster are used for transferring DATA change of the cache parameter configuration table.
The CCDA (CACHE CONFIG DATA AREA) stores configuration parameters in a ConcurrentHashMap structure, exists in a memory of an application service, and when a request for querying a CACHE comes, a specific CACHE mode and other operation options of the CACHE are obtained from the CCDA region.
The PDQC (PUBLIC DATA QUERY COMPONENT) provides a PUBLIC DATA access interface (CachedParamaInterface), a cache policy PUBLIC interface (CacheStoreStrategInterface), a QUERY annotation (@ CachedQuery) and a cache facet class (CacheAspect), processes QUERY and update operations of the PUBLIC cache COMPONENT, and synchronizes cache DATA after the update operation is completed.
And the ATS (ADMINISTRATIVE TERMINAL SYSTEM, system management terminal system) can synchronize the data of the CCDA in all the distributed application services through the ATS, and can also refresh the cached data table of all the distributed application services through the ATS. The ATS monitors the use condition of each cache, and when some cache mode is abnormal, all the cache modes configured in the CCD table are automatically modified into D, namely database access.
The embodiment of the application provides a data access method flow, which specifically comprises the following steps:
s1, creating nodes and all sub-nodes for transferring each configuration item change in the cache configuration parameter table for the cache configuration parameters in the preset cache configuration parameter area, and monitoring data change events of the nodes and all sub-nodes.
It should be noted that, when the application service is started, all data of the CCD is loaded to the CCDA from the database, and a node cache CCDN corresponding to the CCD is created on the zokeeper cluster. Meanwhile, a corresponding sub-node CCDN/TABLE _ NAME of the CCDN is created for each row of configuration data in the CCD, and finally, the application service monitors the CCDN and data change events of all the sub-nodes on the ZOOKEEPER cluster.
And S2, receiving a data access request 1 sent by a user, wherein the data access request 1 is attached with a data access class with a cache annotation.
In the embodiment of the present application, a public cache component is provided in an application service, a developer needs to implement a public data access interface on the public cache component for a data access class that needs to use a cache, and implement a method for initializing and refreshing a load data cache, and at the same time, an @ CachedQuery annotation needs to be added to a query method for the data access class, and a key Value column of the cache is specified in a Value attribute, as follows:
@Override
@CachedQuery(value={“bankNo”,”rullId”,”rullSeq”})
public XXXObject selectByPrimaryKey(String bankNo,String rullId,String rullSeq){//do someThing;}。
s3, obtaining the cache table identifier to which the data access class belongs, and searching the cache configuration parameter corresponding to the cache table identifier from the CCDA (pre-defined cache configuration parameter area), so as to determine the cache policy class corresponding to the data access class as the memory cache class.
In this embodiment of the present application, the cache policy classes generally include four types, specifically: a memory caching policy class (memorystoreStrength), a Redis caching policy class (RedisStoreStrategy), a thread caching policy class (threadStoreStrategy), and a database access policy class (DataBaseStotoreStrategy).
If a new cache policy class needs to be added, only a cache type configuration item needs to be added in a cache configuration parameter table of the database, that is, a cache type configuration item is added, a new type identifier is added, and a cache policy common interface is realized by adding a specific cache policy class.
If the current cache policy class needs to be replaced, only the cache type configuration item needs to be modified in the cache configuration parameter table of the database, that is: if the current memory cache needs to be modified into the Redis cache before the memory cache policy is modified, the cache type configuration item in the cache configuration parameter table of the database needs to be correspondingly modified, that is, the memory cache policy is modified into the Redis cache policy.
S4, calling the memory cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back the data query result to the user.
And S5, when the data query result is null, if the query option configuration item in the cache configuration parameters is to query the database when the query cache is not found, calling a database cache policy class to execute database query operation.
And S6, monitoring the operation parameters of the data query operation corresponding to each cache strategy class.
Because the data cache space corresponding to each buffer policy class in the application service is limited, in order to ensure the normal operation of each cache database, when the configuration parameters of the cache configuration parameter table need to be modified or the database table data needs to be modified manually, the operation parameters of the data query operation corresponding to each buffer policy class in the application service need to be monitored.
S7, when the total amount of the memory cache exceeds the set size, if it is determined that the service of the query operation of the memory cache is abnormal, the cache type configuration item corresponding to the memory cache policy class needs to be changed to the database access cache policy class.
And S9, calling the database access strategy class to execute data query operation, and feeding back the data query result to the user.
S10, when the change information of the node and all the sub-nodes thereof is received, deleting the configuration items in the preset cache configuration parameter area, and reloading each configuration item in the cache configuration parameter table to the preset cache configuration parameter area.
When receiving a CCDN node change message sent by ZOOKEEPER, the application service firstly clears the data of the CCDA and then reloads the data of the CCD table to the CCDA, thereby achieving the purpose of refreshing the cache configuration parameters.
In the embodiment of the application, the method beginning with update, delete, insert in the data access class of the public cache component PDQC is used in the application service to add @ After notification of the Spring section, and record all table names subjected to table modification operation in modifiedtablist of thread local. At the same time the public cache component PDQC will add the @ arc notification of the Spring section to all @ Transactional annotations. Clearing ModifiedDelist of ThreadLocal before starting @ Transactional transaction, sending a data modification message to a corresponding node on a ZOOKEEPER cluster according to the cache table identification recorded by the ModifiedDelist after the transaction is successfully submitted, and informing all application services subscribed with data changes of the node by the ZOOKEEPER cluster to call a corresponding cache strategy class to refresh cache data.
According to the public cache component capable of integrating multiple cache modes, system developers only need to develop once according to the access mode provided by the public component, and cache parameters are configured as required, so that the problems that cache development workload is large and management is not easy in the prior art are solved. If the cache mode or a certain cache parameter needs to be modified, only the cache configuration parameter table needs to be modified, and the modification can be effective without restarting the application service, so that the problem of inflexibility of cache modification in the prior art is solved. When a new cache mode needs to be added to the component, system developers can perform secondary development according to an interface provided by the public cache component, and the system developers can use the new cache mode only by modifying the cache parameter table, so that the problem of difficulty in extension in the prior art is solved. The public cache component has the characteristics of expandability, flexible configuration, real-time effectiveness, simplicity, easiness in use and the like, can help system developers to manage and use the cache better, and greatly reduces the learning cost and the development workload of the system developers.
Referring to fig. 6, based on the data access method disclosed in the foregoing embodiment, the present embodiment correspondingly discloses a data access device, which specifically includes: a first processing unit 601, a second processing unit 602, and a third processing unit 603, wherein:
the first processing unit 601 is configured to receive a data access request sent by a user, where the data access request is accompanied by a data access class with a cache annotation.
A second processing unit 602, configured to obtain a cache table identifier to which the data access class belongs, and search for a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship between each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identifies a configuration item, a cache type configuration item, an application service initialization loading configuration item, a query option configuration item and a cache data initialization configuration item.
The third processing unit 603 is configured to invoke a cache policy class corresponding to the cache type configuration item in the cache configuration parameter to perform a data query operation, and feed back a data query result to the user.
Further, on the basis of the data access apparatus disclosed above, the third processing unit 603 is further configured to:
and when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, the cache configuration parameter is used for calling a database cache policy class to execute database query operation.
Further, on the basis of the data access apparatus disclosed above, the third processing unit 603 is further configured to:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
The database access device comprises a processor and a memory, wherein the first processing unit, the second processing unit, the third processing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more than one, the corresponding relation of each data access class, the cache configuration parameters and the corresponding cache strategy class is stored in a preset cache configuration parameter area, the cache configuration parameters and the cache strategy class are respectively stored, and when a cache mode needs to be added, the cache mode is modified or the cache is abnormal, the cache configuration parameters in the preset cache configuration parameter area only need to be correspondingly added or modified.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data access method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data access method is executed when the program runs.
An embodiment of the present invention provides an electronic device, as shown in fig. 7, the electronic device 70 includes at least one processor 701, and at least one memory 702 and a bus 703, which are connected to the processor; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call the program instructions in the memory 702 to execute the inter-database method described above.
The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a data access request sent by a user, wherein the data access request is attached with a data access class of a cache annotation;
obtaining a cache table identifier to which the data access class belongs, and searching a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship among each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item;
and calling the cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
Preferably, the method further comprises the following steps:
when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, calling a database cache strategy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
Preferably, the method further comprises the following steps:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
Preferably, the process of constructing the preset cache configuration parameter area includes:
when the application service is started, loading all cache configuration parameters of a cache configuration parameter table from a preset database;
calling the application service initialization loading configuration item and the cache data initialization configuration item in each cache configuration parameter to carry out the cache data customization initialization operation;
and establishing a corresponding relation among the access types of the databases, the cache configuration parameters and the corresponding cache strategy types, and constructing a preset cache configuration parameter area.
Preferably, before receiving the data access request sent by the user, the method further includes:
creating nodes for transmitting each configuration item change in the cache configuration parameter table and all child nodes thereof for the cache configuration parameters in the preset cache configuration parameter area;
monitoring data change events of the node and all child nodes thereof;
and when the node and all the child node change messages thereof are received, deleting the configuration items in the preset cache configuration parameter area, and reloading each configuration item in the cache configuration parameter table to the preset cache configuration parameter area.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of data access, comprising:
receiving a data access request sent by a user, wherein the data access request is attached with a data access class of a cache annotation;
obtaining a cache table identifier to which the data access class belongs, and searching a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship among each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item;
and calling the cache strategy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
2. The method of claim 1, further comprising:
when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not searched, calling a database cache strategy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
3. The method of claim 1 or 2, further comprising:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
4. The method according to claim 1, wherein the constructing process of the preset buffer configuration parameter area comprises:
when the application service is started, loading all cache configuration parameters of a cache configuration parameter table from a preset database;
calling the application service initialization loading configuration item and the cache data initialization configuration item in each cache configuration parameter to carry out the cache data customization initialization operation;
and establishing a corresponding relation among the access types of the databases, the cache configuration parameters and the corresponding cache strategy types, and constructing a preset cache configuration parameter area.
5. The method of claim 1, prior to receiving the data access request sent by the user, further comprising:
creating nodes for transmitting each configuration item change in the cache configuration parameter table and all child nodes thereof for the cache configuration parameters in the preset cache configuration parameter area;
monitoring data change events of the node and all child nodes thereof;
and when the node and all the child node change messages thereof are received, deleting the configuration items in the preset cache configuration parameter area, and reloading each configuration item in the cache configuration parameter table to the preset cache configuration parameter area.
6. A data access device, comprising:
the first processing unit is used for receiving a data access request sent by a user, and the data access request is attached with a data access class with a cache annotation;
a second processing unit, configured to obtain a cache table identifier to which the data access class belongs, and search for a cache configuration parameter corresponding to the cache table identifier from a preset cache configuration parameter area, where a corresponding relationship between each data access class, the cache configuration parameter, and a corresponding cache policy class is stored in the preset cache configuration parameter area in advance, where the cache configuration parameter includes: the cache table identification configuration item, the cache type configuration item, the application service initialization loading configuration item, the query option configuration item and the cache data initialization configuration item;
and the third processing unit is used for calling the cache policy class corresponding to the cache type configuration item in the cache configuration parameters to execute data query operation, and feeding back a data query result to the user.
7. The apparatus of claim 6, wherein the third processing unit is further configured to:
when the data query result is empty, if the query option configuration item in the cache configuration parameter is to query the database when the query cache is not found, the cache configuration parameter is used for calling a database cache policy class to execute database query operation; if the query option configuration item in the cache configuration parameters is only the query cache, finishing the data query.
8. The apparatus according to claim 6 or 7, wherein the third processing unit is further configured to:
monitoring the operation parameters of the data query operation corresponding to each cache strategy class;
when the monitoring value exceeds a preset threshold value, determining that data query operation of a corresponding cache policy class is abnormal, and changing the cache type configuration item corresponding to the abnormal cache policy class into a database access policy class;
and calling the database access strategy class to execute data query operation, and feeding back a data query result to the user.
9. A storage medium, characterized in that the storage medium includes a stored program, wherein a device on which the storage medium is located is controlled to execute the data access method according to any one of claims 1 to 5 when the program runs.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is operable to invoke program instructions in the memory to perform the data access method of any of claims 1 to 5.
CN201911200031.0A 2019-11-29 2019-11-29 Data access method and device Active CN110968603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911200031.0A CN110968603B (en) 2019-11-29 2019-11-29 Data access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911200031.0A CN110968603B (en) 2019-11-29 2019-11-29 Data access method and device

Publications (2)

Publication Number Publication Date
CN110968603A true CN110968603A (en) 2020-04-07
CN110968603B CN110968603B (en) 2023-07-04

Family

ID=70032082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911200031.0A Active CN110968603B (en) 2019-11-29 2019-11-29 Data access method and device

Country Status (1)

Country Link
CN (1) CN110968603B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930449A (en) * 2020-09-28 2020-11-13 武汉中科通达高新技术股份有限公司 Data management method and server
CN111966679A (en) * 2020-07-15 2020-11-20 宏图智能物流股份有限公司 Storage transportation database cache management method and device
CN112559573A (en) * 2020-12-24 2021-03-26 京东数字科技控股股份有限公司 Data caching method, device, equipment and computer readable medium
CN112965984A (en) * 2021-05-18 2021-06-15 鲁班(北京)电子商务科技有限公司 Method and device for executing database transaction
CN113608886A (en) * 2021-06-30 2021-11-05 北京新氧科技有限公司 Function access caching method and device, electronic equipment and storage medium
CN114416529A (en) * 2021-12-21 2022-04-29 惠州市德赛西威汽车电子股份有限公司 Configuration table-based diagnostic mode implementation method, storage medium, and computer program

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236781A1 (en) * 1998-10-05 2003-12-25 Oracle International Corporation Caching the results of security policy functions
CN101951395A (en) * 2010-08-30 2011-01-19 中国科学院声学研究所 Access prediction-based data cache strategy for P2P Video-on-Demand (VoD) system server
CN102043653A (en) * 2010-12-23 2011-05-04 中国农业银行股份有限公司 Cache system and methods for modifying cache configuration and operating and querying cache data
CN102104632A (en) * 2005-01-24 2011-06-22 茨特里克斯系统公司 Systems and methods for performing caching of dynamically generated objects in a network
WO2013041001A1 (en) * 2011-09-19 2013-03-28 北京奇虎科技有限公司 A method, device, browser and program for accessing web page
CN106021126A (en) * 2016-05-31 2016-10-12 腾讯科技(深圳)有限公司 Cache data processing method, server and configuration device
CN106708636A (en) * 2016-12-29 2017-05-24 北京奇虎科技有限公司 Cluster-based data caching method and apparatus
CN106878053A (en) * 2016-12-22 2017-06-20 努比亚技术有限公司 A kind of config update devices and methods therefor based on ZOOKEEPER
CN107704573A (en) * 2017-09-30 2018-02-16 山东浪潮通软信息科技有限公司 A kind of intelligent buffer method coupled with business
CN108132958A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 A kind of multi-level buffer data storage, inquiry, scheduling and processing method and processing device
CN108628891A (en) * 2017-03-21 2018-10-09 北京京东尚科信息技术有限公司 Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer
CN108667916A (en) * 2018-04-24 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data access method and system of Web applications
CN108874304A (en) * 2018-03-30 2018-11-23 北京奇艺世纪科技有限公司 A kind of regular configuration method and device of caching system
CN109542907A (en) * 2018-11-21 2019-03-29 万兴科技股份有限公司 Database caches construction method, device, computer equipment and storage medium
CN110109958A (en) * 2019-04-19 2019-08-09 深圳前海微众银行股份有限公司 Method for caching and processing, device, equipment and computer readable storage medium
CN110147508A (en) * 2017-10-26 2019-08-20 北京京东尚科信息技术有限公司 A kind of method and apparatus of system current limliting

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236781A1 (en) * 1998-10-05 2003-12-25 Oracle International Corporation Caching the results of security policy functions
CN102104632A (en) * 2005-01-24 2011-06-22 茨特里克斯系统公司 Systems and methods for performing caching of dynamically generated objects in a network
CN101951395A (en) * 2010-08-30 2011-01-19 中国科学院声学研究所 Access prediction-based data cache strategy for P2P Video-on-Demand (VoD) system server
CN102043653A (en) * 2010-12-23 2011-05-04 中国农业银行股份有限公司 Cache system and methods for modifying cache configuration and operating and querying cache data
WO2013041001A1 (en) * 2011-09-19 2013-03-28 北京奇虎科技有限公司 A method, device, browser and program for accessing web page
CN106021126A (en) * 2016-05-31 2016-10-12 腾讯科技(深圳)有限公司 Cache data processing method, server and configuration device
CN108132958A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 A kind of multi-level buffer data storage, inquiry, scheduling and processing method and processing device
CN106878053A (en) * 2016-12-22 2017-06-20 努比亚技术有限公司 A kind of config update devices and methods therefor based on ZOOKEEPER
CN106708636A (en) * 2016-12-29 2017-05-24 北京奇虎科技有限公司 Cluster-based data caching method and apparatus
CN108628891A (en) * 2017-03-21 2018-10-09 北京京东尚科信息技术有限公司 Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer
CN107704573A (en) * 2017-09-30 2018-02-16 山东浪潮通软信息科技有限公司 A kind of intelligent buffer method coupled with business
CN110147508A (en) * 2017-10-26 2019-08-20 北京京东尚科信息技术有限公司 A kind of method and apparatus of system current limliting
CN108874304A (en) * 2018-03-30 2018-11-23 北京奇艺世纪科技有限公司 A kind of regular configuration method and device of caching system
CN108667916A (en) * 2018-04-24 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data access method and system of Web applications
CN109542907A (en) * 2018-11-21 2019-03-29 万兴科技股份有限公司 Database caches construction method, device, computer equipment and storage medium
CN110109958A (en) * 2019-04-19 2019-08-09 深圳前海微众银行股份有限公司 Method for caching and processing, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘耀林 等: "移动数据库技术的缓存管理策略研究", 计算机时代, no. 08, pages 14 - 16 *
邱林锋 等: "自适应的数据库查询缓存", 计算机工程与应用, no. 22, pages 159 - 161 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966679A (en) * 2020-07-15 2020-11-20 宏图智能物流股份有限公司 Storage transportation database cache management method and device
CN111966679B (en) * 2020-07-15 2022-09-30 宏图智能物流股份有限公司 Storage transportation database cache management method and device
CN111930449A (en) * 2020-09-28 2020-11-13 武汉中科通达高新技术股份有限公司 Data management method and server
CN112559573A (en) * 2020-12-24 2021-03-26 京东数字科技控股股份有限公司 Data caching method, device, equipment and computer readable medium
CN112559573B (en) * 2020-12-24 2024-04-16 京东科技控股股份有限公司 Data caching method, device, equipment and computer readable medium
CN112965984A (en) * 2021-05-18 2021-06-15 鲁班(北京)电子商务科技有限公司 Method and device for executing database transaction
CN113608886A (en) * 2021-06-30 2021-11-05 北京新氧科技有限公司 Function access caching method and device, electronic equipment and storage medium
CN113608886B (en) * 2021-06-30 2024-04-26 北京新氧科技有限公司 Function access caching method and device, electronic equipment and storage medium
CN114416529A (en) * 2021-12-21 2022-04-29 惠州市德赛西威汽车电子股份有限公司 Configuration table-based diagnostic mode implementation method, storage medium, and computer program

Also Published As

Publication number Publication date
CN110968603B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN110968603B (en) Data access method and device
US11249994B2 (en) Query task processing based on memory allocation and performance criteria
US20210149883A1 (en) Data structure reading methods and apparatuses, data structure update methods and apparatuses, and electronic devices
US20210157798A1 (en) Data read and write method and apparatus, and electronic device
US10915554B2 (en) Database replication system
WO2021184761A1 (en) Data access method and apparatus, and data storage method and device
CN110032598B (en) Method and device for updating field and electronic equipment
CN106888245B (en) Data processing method, device and system
US20210256012A1 (en) Methods and apparatuses for reading and updating data structures, and electronic devices
CN110784498B (en) Personalized data disaster tolerance method and device
EP4213038A1 (en) Data processing method and apparatus based on distributed storage, device, and medium
TWI701567B (en) Method and device for processing data modification request for database
CN110134503B (en) Timed task processing method and device in cluster environment and storage medium
CN113111038B (en) File storage method, device, server and storage medium
CN113111036A (en) Small file processing method, device, medium and electronic equipment based on HDFS
US20180121531A1 (en) Data Updating Method, Device, and Related System
WO2017157111A1 (en) Method, device and system for preventing memory data loss
CN111414356A (en) Data storage method and device, non-relational database system and storage medium
WO2024067832A1 (en) Data processing method and apparatus, electronic device, and storage medium
CN113986981A (en) Data synchronization method and device
CN112632093A (en) Work order processing method, device, system, storage medium and program product
CN116701413A (en) Main data processing method and device
CN116661943A (en) Pod data volume dynamic mounting method and device under Kubernetes system platform
CN114493598A (en) Computing resource management method, device, computer equipment and storage medium
CN113761053A (en) Data query method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant