The invention provides a
data management method, a
server and a storage medium, and belongs to the technical field of
data processing.The method comprises the steps that in response to an operation request for any target attachment, a
unique identifier of the target attachment is determined; according to the
unique identifier, querying attachment information corresponding to the target attachment from an attachment table; updating a reference count in the attachment information, wherein the reference count is used for representing the number of times that the target attachment is referenced by the
business entity; according to the operation request, a reference relation table of the target attachment is updated, and the reference relation table is used for recording the incidence relation between the service entity and the attachment. In this way, for one attachment, the
server only stores the
data stream in the attachment once, redundant storage caused by repeated
copying of the same attachment is avoided, the number of times that the attachment information is referenced by the service entity is recorded through the number of times of reference, so that when deletion operation is executed, the number of times of reference of the attachment is used as a reference, deletion of the currently referenced attachment is avoided, and user experience is improved. Accessories are prevented from being deleted by mistake, and a
data management mode is optimized.