Patent ID: 11914615
Assignee: SAP SE
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method, performed by one or more computing devices, for managing shared read-only objects in a hybrid distributed database system, the method comprising:
maintaining a first data structure comprising, for each of a plurality of shared read-only objects, a “deleted at” value for storing a first global commit id of a delete transaction that deleted the shared read-only object, the delete transaction including a performance of a global commit to commit a received request to delete the shared read-only object;
maintaining a second data structure comprising, for each of a plurality of secondary nodes, a respective second global commit id that the secondary node is synchronized to;
maintaining a third data structure comprising, for each of the plurality of shared read-only objects, an indication of which secondary nodes are reading which shared read-only objects;
maintaining a fourth data structure comprising, for each of the plurality of shared read-only objects, a reference count indicating a number of active read transactions for the shared read-only object;
identifying which of the plurality of shared read-only objects can be garbage collected using, at least in part, the first data structure, the second data structure, the third date structure, and the fourth data structure; and
garbage collecting any identified shared read-only objects.