CN113420088B - Method, device and terminal for synchronizing cache database and database - Google Patents
Method, device and terminal for synchronizing cache database and database Download PDFInfo
- Publication number
- CN113420088B CN113420088B CN202110703912.5A CN202110703912A CN113420088B CN 113420088 B CN113420088 B CN 113420088B CN 202110703912 A CN202110703912 A CN 202110703912A CN 113420088 B CN113420088 B CN 113420088B
- Authority
- CN
- China
- Prior art keywords
- query information
- command
- cache database
- database
- request
- 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
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000015654 memory Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001684 chronic effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45583—Memory management, e.g. access or allocation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to a method, a device and a terminal for synchronizing a cache database and a database, and belongs to the technical field of computers. The application comprises the following steps: the method comprises the steps that a request command for inquiring information is obtained, wherein the request command for inquiring information comprises a unique identifier; storing a request command for inquiring information into a Java virtual machine queue according to the unique identifier; judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result; generating a command for requesting to update the cache database according to the judging result; storing a command requesting to update the cache database into a Java virtual machine queue; the Java virtual machine queue sequentially executes the request of the query information and the command for requesting the update of the cache database according to the unique identification, so that the request of the query information is executed after the update of the cache database is completed. Based on a queue mode, a serial mode is adopted for updating the cache, so that the consistency of the cache and a database is ensured, and the requirements of related application scenes are met.
Description
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method, a device and a terminal for synchronizing a cache database and a database.
Background
With the continuous development and progress of the computer information age, the number of users of the network application service is increased, the data volume to be processed by the network application service system is increased, and the requirements of the users on the service quality of the application service are also increased. In a web system, in order to guarantee the access speed and QPS (query-per-second is a measure of how much traffic a particular query server processes in a specified time), the data of the database is cached in a cache database, such as redis, so that after receiving a request, query data can be first made from redis, and if redis does not exist, the database is queried. Thus, most of the requests are consumed by redis, and most of the time is not needed to be directly interacted with the database, so that the pressure of the database is greatly reduced, and the stability of the system is ensured.
However, after the architecture of the database and the cache database is used, the data is changed, the data in the cache database is deleted, then the database is modified, if the modification is not completed, a request is sent, the cache database is read, the empty content in the cache database is found, the database is queried, the old data content before the modification is found, and the old data content is placed in the cache database. The database modification is then completed by the database modification procedure. This situation can cause the data in the database and the cache to be different.
Therefore, how to guarantee database and cache consistency is a problem to be solved.
Disclosure of Invention
In order to overcome the problem of inconsistent data of the cache database and the database in the related technology at least to a certain extent, the application provides a method, a device and a terminal for synchronizing the cache database and the database, which ensure the consistency of the cache database and the database.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, a method of caching a database and synchronizing the database, the method comprising:
acquiring a request command of query information, wherein the request command of the query information comprises a unique identifier;
storing the request command of the query information into a Java virtual machine queue according to the unique identifier;
judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result;
Generating a command for requesting to update the cache database according to the judging result;
storing the command requesting to update the cache database into the Java virtual machine queue;
And the Java virtual machine queue sequentially executes the request of the query information and the command for requesting to update the cache database according to the unique identifier, so that the request of the query information is executed after the update of the cache database is completed.
Further, according to the unique identifier, judging whether the cache database contains the content of the query information, to obtain a judging result, including:
executing the request command of the query information in a cache database according to the unique identifier;
Judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
If the judging result is that the content of the query information is contained in the cache database, returning a query result;
And if the judging result is that the cache database does not contain the content of the query information, generating a command for requesting to update the cache database according to the unique data identifier, and storing the command for requesting to update the cache database into the Java virtual machine queue.
Further, the method further comprises the following steps:
Judging whether the waiting time of the request command of the query information exceeds the preset waiting time;
If the waiting time of the request command for inquiring the information exceeds the preset waiting time, the request command for inquiring the information is directly executed in the database, and an inquiring result is returned.
Further, the cache database is a redis database.
Further, the content of the query information uniquely identified as the request for query information is combined with a timestamp.
In a second aspect, an apparatus for caching databases and synchronizing the databases, includes:
the system comprises an acquisition request command module, a request command processing module and a request processing module, wherein the acquisition request command module is used for acquiring a request command of query information, and the request command of the query information comprises a unique identifier;
The first storage module is used for storing the request command of the query information into a Java virtual machine queue according to the unique identifier;
the first judging module is used for judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result;
the command module is used for generating a command for requesting to update the cache database according to the judging result;
The second storage module is used for storing the command for requesting to update the cache database into the Java virtual machine queue;
And the execution command module is used for sequentially executing the request of the query information and the command for requesting to update the cache database according to the unique identifier by the Java virtual machine queue so that the request of the query information is executed after the update of the cache database is completed.
Further, the method further comprises the following steps:
the query module is used for executing the request command of the query information in the cache database according to the unique identifier;
The second judging module is used for judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
And the first query result returning module is used for returning a query result if the judging result is the content of the query information contained in the cache database.
Further, the method further comprises the following steps:
The third judging module is used for judging whether the waiting time of the request command of the query information exceeds the preset waiting time;
and the second query result returning module is used for directly executing the query command of the query information in the database and returning the query result if the waiting time of the query command of the query information exceeds the preset waiting time.
In a third aspect, a terminal for caching a database and synchronizing the database, includes:
one or more memories having executable programs stored thereon;
One or more processors configured to execute the executable program in the memory to implement the steps of the cache database and database synchronization method as described in any one of the preceding claims.
In a fourth aspect, a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cache database and database synchronization method as described in any of the preceding claims.
The application adopts the technical proposal and has at least the following beneficial effects:
According to the method for synchronizing the cache database and the database, provided by the application, the request command of inquiring information is obtained, and the request command of inquiring information comprises a unique identifier; storing a request command for inquiring information into a Java virtual machine queue according to the unique identifier; judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result; generating a command for requesting to update the cache database according to the judging result; storing a command requesting to update the cache database into a Java virtual machine queue; the Java virtual machine queue sequentially executes the request of the query information and the command for requesting the update of the cache database according to the unique identification, so that the request of the query information is executed after the update of the cache database is completed. Based on a queue mode, a serial mode is adopted for updating the cache, so that the consistency of the cache and a database is ensured, and the requirements of related application scenes are met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a method of caching databases and database synchronization, according to an example embodiment.
Fig. 2 is a block diagram schematically illustrating an apparatus for caching databases and synchronizing databases according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a cache database and a terminal for database synchronization according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating a method of caching databases and database synchronization according to another example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, based on the examples herein, which are within the scope of the application as defined by the claims, will be within the scope of the application as defined by the claims.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method of caching database and database synchronization according to an exemplary embodiment, and as shown in fig. 1, the method of caching database and database synchronization includes the steps of:
Step 101, acquiring a request command of query information, wherein the request command of the query information comprises a unique identifier;
102, storing the request command of the query information into a Java virtual machine queue according to the unique identifier;
step 103, judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result;
104, generating a command for requesting to update the cache database according to the judging result;
step 105, storing the command for requesting to update the cache database into the Java virtual machine queue;
And 106, the Java virtual machine queue sequentially executes the request of the query information and the command for requesting to update the cache database according to the unique identifier, so that the request of the query information is executed after the update of the cache database is completed.
In the prior art, after a database and cache architecture is used, there is a requirement to ensure the consistency of the database and the cache. The data is changed, the cache is deleted, and then the database is modified, and the database is not modified at this time. A request comes from reading the cache, finding that the cache is empty, querying the database, finding the old data before modification, and placing the old data in the cache. The procedure for the subsequent data change completes the modification of the database. This situation can cause the data in the database and the cache to be different. According to the method for synchronizing the cache database and the database, when data are updated, a request command for inquiring information is stored in a queue of a Java virtual machine according to the unique identification, when the data are read, if the data are not found in the cache database, the operations of re-reading the data and updating the cache are started, the command for updating the cache database is stored in the Java virtual machine queue according to the unique identification, one queue corresponds to one working thread, each working thread is serially fetched to the corresponding operation, and then one working thread is executed. Thus, a data change operation, which deletes the cache and then updates the database, has not yet been completed. If a read request comes, the data of the query is not read in the cache database, the command for updating the cache database can be stored in the queue, backlog is generated in the queue at the moment, and then the completion of the cache update is synchronously waited. After the corresponding working thread of the queue completes the modification of the database of the previous operation, the next operation, namely the operation of cache update, is executed, and at the moment, the latest value is read from the database and then written into the cache. And the cache is updated in a serial mode based on the memory queue, so that the consistency of the cache and the database is ensured.
As a further improvement to the above-described embodiments, in some embodiments,
Judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result, wherein the judging result comprises the following steps:
executing the request command of the query information in a cache database according to the unique identifier;
Judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
If the judging result is that the content of the query information is contained in the cache database, returning a query result;
And if the judging result is that the cache database does not contain the content of the query information, generating a command for requesting to update the cache database according to the unique data identifier, and storing the command for requesting to update the cache database into the Java virtual machine queue.
Further, in some embodiments, after the request command for obtaining the query information, the method further includes:
Judging whether the waiting time of a request command for inquiring information exceeds the preset waiting time;
If the waiting time of the request command for inquiring the information exceeds the preset waiting time, the request command for inquiring the information is directly executed in the database, and an inquiring result is returned.
In some embodiments, the cache database is a redis database.
Further, in some embodiments, the content of the query information uniquely identified as the request for the query information is combined with a timestamp.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an apparatus for synchronizing a cache database and a database according to an exemplary embodiment, and as shown in fig. 2, the apparatus 2 for synchronizing a cache database and a database includes:
an acquisition request command module 201, configured to acquire a request command of query information, where the request command of query information includes a unique identifier;
a first storage module 202, configured to store, according to the unique identifier, a request command for querying information into a Java virtual machine queue;
A first judging module 203, configured to judge whether the cache database contains the content of the query information according to the unique identifier, so as to obtain a judging result;
A command module 204 for generating a command for updating the cache database, configured to generate a command for requesting to update the cache database according to the determination result;
A second storage module 205, configured to store the command requesting to update the cache database into the Java virtual machine queue;
And the execution command module 206 is configured to sequentially execute the request for query information and the command for requesting to update the cache database according to the unique identifier by using the Java virtual machine queue, so that the request for query information is executed after the update of the cache database is completed.
Further, the device for caching database and synchronizing database further comprises:
the query module is used for executing the request command of the query information in the cache database according to the unique identifier;
The second judging module is used for judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
And the first query result returning module is used for returning a query result if the judging result is the content of the query information contained in the cache database.
Further, the device for caching database and synchronizing database further comprises:
The third judging module is used for judging whether the waiting time of the request command of the query information exceeds the preset waiting time;
and the second query result returning module is used for directly executing the query command of the query information in the database and returning the query result if the waiting time of the query command of the query information exceeds the preset waiting time.
The specific manner in which the respective modules perform the operations in the above embodiments of the related methods have been described in detail in relation to the apparatus for caching databases and synchronizing databases in the above embodiments, and will not be described in detail herein.
Referring to fig. 3, fig. 3 is a schematic block diagram of a terminal for caching database and database synchronization according to an exemplary embodiment, and as shown in fig. 3, the terminal 3 for caching database and database synchronization includes:
one or more memories 301 on which executable programs are stored;
One or more processors 302 for executing the executable program in the memory 301 to implement the steps of any of the methods described above.
The specific manner in which the processor 302 executes the program in the memory 301 of the chronic case feature classification processing terminal 3 in the above-described embodiment has been described in detail in the above-described embodiment of the related method, and will not be described in detail here.
In some embodiments, the application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cache database and database synchronization method as described in any of the above.
Referring to fig. 4, for ease of understanding, the present application also provides a flowchart illustrating a method of caching databases and database synchronization according to another exemplary embodiment.
The specific manner in which the operations are performed by the steps in the method for caching databases and synchronizing databases in the above embodiment has been described in detail in the above related method embodiment, and will not be described in detail herein.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "plurality", "multiple" means at least two.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present; when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present, and further, as used herein, connection may comprise a wireless connection; the use of the term "and/or" includes any and all combinations of one or more of the associated listed items.
Any process or method description in a flowchart or otherwise described herein may be understood as: means, segments, or portions of code representing executable instructions including one or more steps for implementing specific logical functions or processes are included in the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including in a substantially simultaneous manner or in an inverse order, depending upon the function involved, as would be understood by those skilled in the art of embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.
Claims (8)
1. A method of caching databases and database synchronization, the method comprising:
acquiring a request command of query information, wherein the request command of the query information comprises a unique identifier;
storing the request command of the query information into a Java virtual machine queue according to the unique identifier;
judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result;
Generating a command for requesting to update the cache database according to the judging result;
storing the command requesting to update the cache database into the Java virtual machine queue;
The Java virtual machine queue sequentially executes the request of the query information and the command for requesting to update the cache database according to the unique identifier, so that the request of the query information is executed after the update of the cache database is completed;
Judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result, wherein the judging step comprises the following steps:
executing the request command of the query information in a cache database according to the unique identifier;
Judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
If the judging result is that the content of the query information is contained in the cache database, returning a query result;
And if the judging result is that the cache database does not contain the content of the query information, generating a command for requesting to update the cache database according to the unique identifier, and storing the command for requesting to update the cache database into the Java virtual machine queue.
2. The method as recited in claim 1, further comprising:
Judging whether the waiting time of the request command of the query information exceeds the preset waiting time;
If the waiting time of the request command for inquiring the information exceeds the preset waiting time, the request command for inquiring the information is directly executed in the database, and an inquiring result is returned.
3. The method of claim 1, wherein the cache database is a redis database.
4. The method of claim 1, wherein the content of the query information uniquely identified as the request for query information is combined with a timestamp.
5. An apparatus for caching databases and synchronizing databases, comprising:
the system comprises an acquisition request command module, a request command processing module and a request processing module, wherein the acquisition request command module is used for acquiring a request command of query information, and the request command of the query information comprises a unique identifier;
The first storage module is used for storing the request command of the query information into a Java virtual machine queue according to the unique identifier;
the first judging module is used for judging whether the cache database contains the content of the query information according to the unique identifier to obtain a judging result;
the command module is used for generating a command for requesting to update the cache database according to the judging result;
The second storage module is used for storing the command for requesting to update the cache database into the Java virtual machine queue;
the execution command module is used for sequentially executing the request of the query information and the command for requesting to update the cache database according to the unique identifier by the Java virtual machine queue so that the request of the query information is executed after the update of the cache database is completed;
the query module is used for executing the request command of the query information in the cache database according to the unique identifier;
The second judging module is used for judging whether the cache database contains the content of the query information in the request of the query information or not, and obtaining a judging result;
The first query result returning module is used for returning a query result if the judging result is the content of the query information contained in the cache database; and if the judging result is that the cache database does not contain the content of the query information, generating a command for requesting to update the cache database according to the unique identifier, and storing the command for requesting to update the cache database into the Java virtual machine queue.
6. The apparatus as recited in claim 5, further comprising:
The third judging module is used for judging whether the waiting time of the request command of the query information exceeds the preset waiting time;
and the second query result returning module is used for directly executing the query command of the query information in the database and returning the query result if the waiting time of the query command of the query information exceeds the preset waiting time.
7. A terminal for caching databases and synchronizing the databases, comprising:
one or more memories having executable programs stored thereon;
One or more processors configured to execute the executable program in the memory to implement the steps of the method of caching databases and database synchronization of any one of claims 1-4.
8. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of a method of caching databases and database synchronization according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110703912.5A CN113420088B (en) | 2021-06-24 | 2021-06-24 | Method, device and terminal for synchronizing cache database and database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110703912.5A CN113420088B (en) | 2021-06-24 | 2021-06-24 | Method, device and terminal for synchronizing cache database and database |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113420088A CN113420088A (en) | 2021-09-21 |
CN113420088B true CN113420088B (en) | 2024-04-26 |
Family
ID=77716512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110703912.5A Active CN113420088B (en) | 2021-06-24 | 2021-06-24 | Method, device and terminal for synchronizing cache database and database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113420088B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986981A (en) * | 2021-11-11 | 2022-01-28 | 湖南快乐阳光互动娱乐传媒有限公司 | Data synchronization method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006338145A (en) * | 2005-05-31 | 2006-12-14 | Nippon Telegr & Teleph Corp <Ntt> | Multiplex database system, synchronization method thereof, intermediation device and intermediation program |
CN102779132A (en) * | 2011-05-12 | 2012-11-14 | 阿里巴巴集团控股有限公司 | Data updating method, system and database server |
CN106250543A (en) * | 2016-08-10 | 2016-12-21 | 深圳市彬讯科技有限公司 | A kind of automation data inquiry synchronous storage method |
CN107103068A (en) * | 2017-04-18 | 2017-08-29 | 聚好看科技股份有限公司 | The update method and device of service buffer |
CN109947668A (en) * | 2017-12-21 | 2019-06-28 | 北京京东尚科信息技术有限公司 | The method and apparatus of storing data |
CN111290979A (en) * | 2020-03-23 | 2020-06-16 | 优刻得科技股份有限公司 | Data transmission method, device and system |
-
2021
- 2021-06-24 CN CN202110703912.5A patent/CN113420088B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006338145A (en) * | 2005-05-31 | 2006-12-14 | Nippon Telegr & Teleph Corp <Ntt> | Multiplex database system, synchronization method thereof, intermediation device and intermediation program |
CN102779132A (en) * | 2011-05-12 | 2012-11-14 | 阿里巴巴集团控股有限公司 | Data updating method, system and database server |
CN106250543A (en) * | 2016-08-10 | 2016-12-21 | 深圳市彬讯科技有限公司 | A kind of automation data inquiry synchronous storage method |
CN107103068A (en) * | 2017-04-18 | 2017-08-29 | 聚好看科技股份有限公司 | The update method and device of service buffer |
CN109947668A (en) * | 2017-12-21 | 2019-06-28 | 北京京东尚科信息技术有限公司 | The method and apparatus of storing data |
CN111290979A (en) * | 2020-03-23 | 2020-06-16 | 优刻得科技股份有限公司 | Data transmission method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN113420088A (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11074225B2 (en) | Synchronization of index copies in an LSM tree file system | |
CN111797121B (en) | Strong consistency query method, device and system of read-write separation architecture service system | |
CN110830580B (en) | Storage data synchronization method and device | |
CN112306993B (en) | Redis-based data reading method, device, equipment and readable storage medium | |
CN113094430B (en) | Data processing method, device, equipment and storage medium | |
CN111090663A (en) | Transaction concurrency control method, device, terminal equipment and medium | |
US10552371B1 (en) | Data storage system with transparent presentation of file attributes during file system migration | |
CN109063215B (en) | Data retrieval method and device | |
CN110019530A (en) | Transaction methods and device based on distributed data base | |
CN113420088B (en) | Method, device and terminal for synchronizing cache database and database | |
CN113312412A (en) | Statistical data acquisition method and device, electronic equipment and storage medium | |
CN114036077A (en) | Data processing method and related device | |
CN111399753B (en) | Method and device for writing pictures | |
CN111797119A (en) | Caching device, caching system and caching method | |
US10387887B2 (en) | Bloom filter driven data synchronization | |
CN111046106A (en) | Cache data synchronization method, device, equipment and medium | |
CN115344610A (en) | Two-level cache data acquisition method and device | |
CN113297267A (en) | Data caching and task processing method, device, equipment and storage medium | |
CN107656992B (en) | Multi-insertion-source-oriented snapshot version management method | |
CN110750566A (en) | Data processing method and device, cache system and cache management platform | |
CN115934583A (en) | Hierarchical caching method, device and system | |
CN112052234B (en) | Service data processing method and device, storage medium and electronic device | |
CN112115393B (en) | Page loading method, system, device and medium | |
CN113806389A (en) | Data processing method and device, computing equipment and storage medium | |
CN113672556A (en) | Batch file migration method and device |
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 |