Executing transactions on distributed databases

    公开(公告)号:US12007985B2

    公开(公告)日:2024-06-11

    申请号:US18144057

    申请日:2023-05-05

    申请人: Couchbase, Inc.

    摘要: A distributed database system receives and executes a transaction including a first modification statement describing a first modification operation on a subset of records, a second modification statement describing a second modification operation on the subset of records, and a commit statement. Responsive to executing the first and second modification statements, the system receives a copy of the subset of records from data servers; performs the first modification operation to generate a first modified subset of records; and performs the second modification operation on the first modified subset of records. Responsive to executing the commit statement, the system stores the second modified subset of records in a commit table and causes the subset of records to be updated at the data servers.

    EFFICIENT INDEXING FOR QUERYING ARRAYS IN DATABASES

    公开(公告)号:US20210357373A1

    公开(公告)日:2021-11-18

    申请号:US15930351

    申请日:2020-05-12

    申请人: Couchbase, Inc.

    摘要: A database system performs queries on fields storing arrays of a database (i.e., array fields) using de-duplication indexes. The system generates de-duplication indexes for array fields. The de-duplication indexes include unique entries for corresponding distinct values stored by the array fields. The system uses the de-duplication indexes to perform efficient queries specifying corresponding array fields. The system may further generate de-duplication indexes corresponding one or more fields storing various types of values. In various embodiments, the system selects an optimal index from various indexes usable to execute a query, such as a de-duplication index and a conventional index.

    EXECUTING TRANSACTIONS ON DISTRIBUTED DATABASES

    公开(公告)号:US20220067029A1

    公开(公告)日:2022-03-03

    申请号:US17007561

    申请日:2020-08-31

    申请人: Couchbase, Inc.

    摘要: A distributed database system executes transactions on a distributed database. A received transaction includes statements describing modifications of records stored in the distributed database. The distributed database system executes the transaction at a query server by obtaining copies of records corresponding to the statements of the transaction and performing the modifications specified by the statements of the transaction on the record copies. The distributed database system stores the modified record copies at the query server during execution of the transaction. After the transaction has successfully been executed at the query server, the distributed database system attempts to perform a commit process to update the records stored in the distributed database based on the modified record copies.

    PROCESSING TIME SERIES AND SPATIOTEMPORAL DATA IN DOCUMENT DATABASES

    公开(公告)号:US20240346057A1

    公开(公告)日:2024-10-17

    申请号:US18634472

    申请日:2024-04-12

    申请人: Couchbase, Inc.

    IPC分类号: G06F16/33 G06F16/31

    CPC分类号: G06F16/334 G06F16/313

    摘要: A system manages time series data stored in association with documents. The system stores a time series in multiple documents. The time series data includes a series of data points indexed in time order, and each document stores a subset of the series of data points. Each document stores metadata about a time range of the subset of series of data points. The system indexes the documents based on their time ranges. The system may be used for storing and querying spatiotemporal data. Accordingly, each document further stores spatial data and metadata representing a spatial range of geohashes. Responsive to receiving a query for one or more data points, the system selects one or more documents from the multiple documents that contain data points in the particular spatial and time range based on the indexes. The system performs the query on the data points.

    Executing transactions on distributed databases

    公开(公告)号:US11681687B2

    公开(公告)日:2023-06-20

    申请号:US17007561

    申请日:2020-08-31

    申请人: Couchbase, Inc.

    摘要: A distributed database system executes transactions on a distributed database. A received transaction includes statements describing modifications of records stored in the distributed database. The distributed database system executes the transaction at a query server by obtaining copies of records corresponding to the statements of the transaction and performing the modifications specified by the statements of the transaction on the record copies. The distributed database system stores the modified record copies at the query server during execution of the transaction. After the transaction has successfully been executed at the query server, the distributed database system attempts to perform a commit process to update the records stored in the distributed database based on the modified record copies.

    EXECUTING TRANSACTIONS ON DISTRIBUTED DATABASES

    公开(公告)号:US20230315718A1

    公开(公告)日:2023-10-05

    申请号:US18144057

    申请日:2023-05-05

    申请人: Couchbase, Inc.

    摘要: A distributed database system receives and executes a transaction including a first modification statement describing a first modification operation on a subset of records, a second modification statement describing a second modification operation on the subset of records, and a commit statement. Responsive to executing the first and second modification statements, the system receives a copy of the subset of records from data servers; performs the first modification operation to generate a first modified subset of records; and performs the second modification operation on the first modified subset of records. Responsive to executing the commit statement, the system stores the second modified subset of records in a commit table and causes the subset of records to be updated at the data servers.