Abstract:
This application discloses a time series data management method, device, and apparatus. A device receives a data query request, wherein the data query request includes an identifier of the first object. The device obtains first time series data corresponding to the first object in a target data table according to the identifier of the first object. The device determines a second storage location that is in a location index table and that is stored in a first storage location corresponding to the first object. Further, the device obtains second time series data of the first object and a third storage location corresponding to the second time series data that are stored in the second storage location, The device also obtains other time series data corresponding to the first object according to the third storage location.
Abstract:
A method for accessing a database is disclosed, which includes: receiving a modification operation request for shared data in the database which is mapped into a process address space; decomposing the modification operation request to a preset number of atomic operation sequences; invoking atomic operation interfaces according to an execution order of the various atomic operation sequences; and accessing the shared data in the database, which is mapped into the process address space, through atomic operations which are provided by the atomic operation interfaces. An apparatus for accessing a database and a database application system are also disclosed.
Abstract:
A log-structured storage method and a server, where the method includes obtaining a current incremental update of an object when the object is updated, wherein a current version of the object is stored in a log-structured storage area of the server, determining whether there is a previous incremental update of the object stored in the log-structured storage area, writing the current incremental update as a latest incremental update in the log-structured storage area when there is no previous incremental update of the object stored in the log-structured storage area such that the utilization of memory can be improved.
Abstract:
A remote procedure call (RPC) method for a network device and the network device, where a client sends an RPC request to an RPC core, where the RPC request requests to call a service deployed on a server, the RPC core receives the RPC request from the client and forwards the RPC request to the server when the RPC core determines that a dynamic service registry stores valid registration information of the server, the server receives the RPC request from the RPC core, and provides a corresponding service for the client according to the RPC request.
Abstract:
A remote procedure call (RPC) method for a network device and the network device, where a client sends an RPC request to an RPC core, where the RPC request requests to call a service deployed on a server, the RPC core receives the RPC request from the client and forwards the RPC request to the server when the RPC core determines that a dynamic service registry stores valid registration information of the server, the server receives the RPC request from the RPC core, and provides a corresponding service for the client according to the RPC request.
Abstract:
A method and an apparatus for querying data in a database, and the method includes: receiving a query instruction; determining a status of each block index in a block index set prestored in a global memory of a GPU; when each block index in the global memory of the GPU is in an asynchronous state, starting one or more GPU processes to filter the block index in the global memory of the GPU according to a query condition, to obtain a first block index query result; and determining a final data query result according to the first block index query result. In this method, querying is performed by directly using a GPU process, thereby omitting a process of repeatedly copying partitioned data from a memory in the prior art, shortening query time, and improving query efficiency.
Abstract:
A method and an apparatus of maintaining data for online analytical processing in a database system. The method includes: tracking a changed page in a main process; and synchronizing the changed page to a child process for online analytical processing. In the method and apparatus of maintaining data for online analytical processing, the changed pages are tracked and then the child process is synchronized with the changed pages. Therefore, periodic forking is avoided, fork overhead due to periodic forking in the prior art is removed, the synchronization is faster since only the changed pages are synchronized, and the performance of online data processing is enhanced.
Abstract:
A log-structured storage method and a server, where the method includes obtaining a current incremental update of an object when the object is updated, wherein a current version of the object is stored in a log-structured storage area of the server, determining whether there is a previous incremental update of the object stored in the log-structured storage area, writing the current incremental update as a latest incremental update in the log-structured storage area when there is no previous incremental update of the object stored in the log-structured storage area such that the utilization of memory can be improved.
Abstract:
Embodiments of the present invention provide a method and an apparatus for concurrent access of mixed services, and relate to the field of database applications, so as to implement concurrent read/write access to a database service, allow lock-free concurrency of query and modification operations, lower operation complexity, reduce overheads, reduce a waste of memory, and improve data timeliness. The method includes: dividing a data table to obtain at least one data set; breaking down a modification or query operation on the data table into at least one point operation; determining whether to-be-processed data on which point operation processing is performed is distributed in multiple columns; and if the to-be-processed data is distributed in multiple columns, determining whether the to-be-processed data is in a same data set, and performing a modification or query operation on the to-be-processed data according to a result of the determining.
Abstract:
A method for copying values of a table of a database between a primary memory and a secondary memory comprises selecting one or more segments, wherein the table is organized in a plurality of stripes and a plurality of vertical partitions, wherein a stripe comprises at least two rows of the table, wherein a vertical partition comprises one or more columns of the table, wherein each of the plurality of segments comprises values at a cross-section of a stripe and a vertical partition, and wherein each of the plurality of segments stores adjacent column values in adjacent locations of the primary or the secondary memory, and copying the one or more selected segments between the primary memory and the secondary memory.