Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and terminal for optimizing data deletion

An optimization method and data technology, applied in database indexing, electronic digital data processing, structured data retrieval, etc., to achieve the effect of improving efficiency

Active Publication Date: 2022-07-26
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Among them, what is used now is a scheduled task, which deletes data at regular intervals, for example, every 10 minutes. If the time is set too long, there will be a period of time when the actual message has expired, but It is still stored in the memory. If the setting time is too short, it is impossible to completely traverse the tens of thousands of data information in the hashmap once.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and terminal for optimizing data deletion
  • A method and terminal for optimizing data deletion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] Please refer to figure 1 , the first embodiment of the present invention is:

[0060] An optimization method for data deletion, comprising the steps of:

[0061] S1. While saving the channel information to the hashmap data set, create a treemap data in the treemap data set. The key of the treemap data is the expiration timestamp of the channel information and the value is the list structure of the channel ID that stores the channel information;

[0062] S2. Scan the treemap data set, delete the channel information corresponding to the channel ID corresponding to the key whose expiration timestamp is less than or equal to the current time in the hashmap dataset, and delete the key whose expiration timestamp is less than or equal to the current time in the treemap dataset. treemap data.

[0063] In this embodiment, the treemap data set in step S1 performs an ascending key sorting operation. At this time, step S2 further includes: when scanning the treemap data where the...

Embodiment 2

[0071] Please refer to figure 1 , the second embodiment of the present invention is:

[0072] An optimization method for data deletion, on the basis of the above-mentioned Embodiment 1, the specific implementation process of S2 is replaced as follows:

[0073] Obtain the arrangement position of the first treemap data in the treemap dataset where the expiration timestamp closest to the current time is located in the treemap dataset, and determine whether the expiration timestamps before the first treemap data are all less than or equal to the current time, and if so, Then delete the channel information corresponding to the channel ID in all treemap data whose arrangement position is before the first treemap data in the hashmap data set;

[0074] If the expiration timestamps whose arrangement positions are before the first treemap data are all greater than the current time, the channel information corresponding to the channel IDs in all treemap data whose arrangement positions ...

Embodiment 3

[0077] Please refer to figure 2 , the third embodiment of the present invention is:

[0078] An optimized terminal 1 for data deletion includes a memory 3, a processor 2, and a computer program stored in the memory 3 and running on the processor 2. The processor 2 implements the steps of the first embodiment when executing the computer program.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an optimization method and terminal for data deletion. While saving channel information to a hashmap data set, a treemap data is established in the treemap data set. The key of the treemap data is the expiration time stamp of the channel information and the value is the stored data. The list structure of the channel ID of the channel information; scan the treemap data set, delete the channel information corresponding to the channel ID corresponding to the key whose expired timestamp is less than or equal to the current time in the hashmap data set; the present invention adopts the ascending or descending order of the key because the treemap Sorting, as long as you traverse to the keys that have exceeded the expiration time, you can get the channel IDs corresponding to these keys, and then you can directly delete the channel information in the hashmap according to the channel IDs. Expired related data information does not need to traverse all objects for comparison, which improves efficiency.

Description

technical field [0001] The invention relates to the technical field of data push, in particular to an optimization method and terminal for data deletion. Background technique [0002] With the rapid development of the mobile Internet, most mobile APPs provide message push functions, such as hot news recommendation on news clients, chat message reminders on IM tools, e-commerce product promotion information, and corporate application notifications and approval processes, etc. Pushing plays an important role in increasing product activity, increasing the utilization rate of functional modules, increasing user stickiness, and increasing user retention rate. [0003] However, many push applications now have an access service deployed in multiple clusters. The client establishes a long link with an access application in the cluster every time. After the establishment, the server and the client will maintain There is a long link through which all messaging takes place. And there...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/215G06F16/22G06F16/2457
CPCG06F16/215G06F16/2291G06F16/2457
Inventor 刘德建林伟郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD