The invention discloses a
metadata persistence method, an electronic device, a storage medium and a program product, and relates to the technical field of computers, when a request is written, a newly added forward relation of a small amount of data is generated from written data, the newly added forward relation is added to the
tail of an existing forward relation of a distributed
key value database, and the newly added forward relation is added to the
tail of the existing forward relation of the distributed
key value database. The method does not need to acquire the existing forward relation and the newly added forward relation, update the forward relation and then write the updated forward relation into the distributed
key value database again, reduces the number of times of writing into the distributed key value
database, reduces the time
delay of updating the forward relation, does not need to read out the existing forward relation and deserialize the existing forward relation, reduces the time
delay of updating the forward relation, and reduces the time
delay of updating the forward relation. And then serialized writing is performed, so that the processor consumption is reduced. According to the method, the forward relation is spliced to form the spliced forward relation when the request is read, the data is read from the data
pool according to the spliced forward relation, the read request is associated with the written data, data reading is not affected, and the consumption of a processor can be comprehensively reduced.