This invention provides a method, medium, product, and device for session
connection management during
database playback. The method includes: receiving a session identifier from a session during playback; generating an allocation identifier based on the low-order
byte of the session identifier; determining a target pointer array corresponding to the session in a pre-set
session management table based on the allocation identifier, wherein the
session management table pre-sets a predetermined number of pointer arrays, each pointer array corresponding to a singly
linked list and pointing to the head node of the corresponding singly
linked list; determining whether a target node matching the session identifier exists in the target singly
linked list corresponding to the target pointer array; if no target node exists in the target singly linked
list, creating a new connection node and inserting the new connection node into the target singly linked
list. This method enables rapid generation of the allocation identifier based on the low-order
byte, and achieves rapid location and efficient storage of session nodes using a singly linked
list structure, ensuring the stability and smoothness of high-
concurrency playback processes.