Abstract:
The present invention provides a database access method, where the method includes the following steps: receiving an access request input by a client, where the access request includes at least one command statement; performing rule matching between the command statement included in the access request and a rule in a preset rule set, and performing transformation processing on a statement that is included in the access request and that matches the rule, so as to generate a sinking statement that satisfies an execution requirement of a data source, where the sinking statement is a statement that is delivered to a database and executed by the data source; and transmitting the sinking statement to the database to which the sinking statement points. The present invention further provides a database access apparatus and a database system to which the foregoing method is applied.
Abstract:
The present invention provides a database access method, where the method includes the following steps: receiving an access request input by a client, where the access request includes at least one command statement; performing rule matching between the command statement included in the access request and a rule in a preset rule set, and performing transformation processing on a statement that is included in the access request and that matches the rule, so as to generate a sinking statement that satisfies an execution requirement of a data source, where the sinking statement is a statement that is delivered to a database and executed by the data source; and transmitting the sinking statement to the database to which the sinking statement points. The present invention further provides a database access apparatus and a database system to which the foregoing method is applied.
Abstract:
The present disclosure relates to fault repair methods for a database system. In one example method, when working normally, a master node backs up, to a global buffer pool (GBP) node by using a data transmission protocol with a low latency and a high throughput (for example, a remote direct memory access (RDMA) protocol), a modified page generated because of transaction modification. When the master node is faulty, a standby node does not need to replay all remaining replay logs that are not replayed, but only needs to replay redo logs corresponding to a page that does not exist on the GBP node and pages that are not sequentially arranged and obtain the pages.
Abstract:
Embodiments provide a data query method and apparatus. The method includes receiving a query request, where the query request includes a query condition, and the query condition relates to N different databases. The method also includes calculating a query cost of each cross-database join processing manner of M cross-database join processing manners, where the query cost of each cross-database join processing manner is a cost for performing, using each cross-database join processing manner, in the N different databases, data query corresponding to the query condition, and M is an integer greater than or equal to 2. The method also includes determining, in the M cross-database join processing manners, a cross-database join processing manner for current use according to the query cost of each cross-database join processing manner, and performing, using the cross-database join processing manner for current use, in the N different databases, data query corresponding to the query condition.
Abstract:
The present invention relates to the field of databases, and discloses a computing device and a method for executing a database operation command. In the present invention, whether an operation requested by an operation command is a read operation is determined; and if the operation requested by the operation command is a read operation, the operation command is executed via authorized access to database server process memory and a query result is obtained, thereby improving data reading performance; or if the operation requested by the operation command is not a read operation, the operation command is forwarded to a database server for executing the operation command, thereby improving reliability of a non-read operation.