The application discloses a cold and hot data determination method and device and medium, and is suitable for the technical field of data storage. The method obtains service request data in a
service layer, adds a
decay time label to the service request data according to a
current decay time matrix, and optimizes the
decay time through an iterative
algorithm to determine the
state switching frequency of the service request data. When a preset condition is met, the cold and hot data of the service request data is determined according to the average
state switching frequency. When the preset condition is not met, the next iteration frequency is taken as a new current iteration frequency. Compared with the cold and hot data determined by a simple time threshold and an LRU
algorithm, the application reasonably allocates storage resources according to the
decay time of different services in the
service layer, so that the determined cold and hot data reflects the
personalization of requests of different business departments, and the
processing efficiency of the
system is improved.