Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Block chain resource value control method and device based on shared conten

A block chain and content technology, applied in the computer field, can solve problems such as low accuracy, frequent insertion and deletion operations, and reduce update performance, so as to achieve the effect of improving performance, accuracy and processing efficiency

Active Publication Date: 2019-11-08
WUBA
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to ensure that no dirty data is read, transactions need to be added, which will reduce performance and low execution efficiency, and there are 2 counting fields. When an article is clicked, 2 transactions will be opened
2) Since the data for storing the total number of mining additions is stored in a table, if the number of users is large, frequent updates and queries to the table will definitely reduce the update performance
3) When an article is shared, insert a piece of shared data for counting, and use the delete statement to delete the data. The insertion and deletion operations are frequent, and delete cannot reduce the table space
Therefore, control processing such as counting, query, addition, and deletion of user resource sharing by using the database leads to poor control processing performance of the system (low efficiency, low accuracy)

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
  • Block chain resource value control method and device based on shared conten
  • Block chain resource value control method and device based on shared conten
  • Block chain resource value control method and device based on shared conten

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0018] Please refer to figure 1 , an embodiment of the present invention based on the control method of the block chain resource value of shared content, including:

[0019] Step S110, acquiring the event message that the link of the shared content is clicked.

[0020] Wherein, the user may share the content by querying the content list to be shared. For example, in the article list, there are 10 articles in the table, and users can query and share articles.

[0021] In one embodiment, a key value key of the hash storage structure of summary information, such as view_sum_count_date_userId, can be added to the user's content list to be shared first, as the cumulative key value Ksum of the current day's resource corresponding to the user ID.

[0022] The hash storage structure is processed by the cache server Redis.

[0023] Among them, Ksum is in view_sum_count_date_userId, and its name includes the current date, user ID, and two fields Fileds.

[0024] Furthermore, the fir...

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 provides a block chain resource value control method and device based on shared content. The method comprises the steps of obtaining an event message that a link of shared content is clicked; searching a day resource accumulation key value corresponding to the user ID in a hash storage structure according to the user ID to which the shared content belongs; judging whether the current-day resource accumulation key value of the user ID exceeds a threshold value or not; if not, querying a temporary content click key value corresponding to the shared content in a hash storage structure; and based on the temporary content click key value, controlling the increase of an effective block chain resource value in the day resource accumulation key value of the user ID. According to thescheme of the invention, the accuracy of resource value increase can be effectively improved, the read-write performance is high, the execution time is shortened, the system processing efficiency is effectively improved, and the system control processing performance is integrally improved.

Description

technical field [0001] The present invention relates to the field of computers, and in particular to a control method and system for blockchain resource values ​​based on shared content Background technique [0002] When increasing the number of new users and increasing user activity in modern network application technology, such as articles shared by users, the same article may have a lot of hits at the same time. As long as the article shared on the same day is clicked on the same day, it will Add resource value to sharers, but repeated clicks on the same article cannot increase resource value twice, and articles that users can increase resource value cannot exceed a certain number of articles per day, such as no more than 10 times. Therefore, it is necessary to prevent repeated increases and the number of increases cannot exceed the specified number of times. [0003] The existing method is to add a piece of data to the database after the user shares the article. When th...

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
IPC IPC(8): G06F16/955G06F16/958
CPCG06F16/9558G06F16/986H04L9/50
Inventor 巩龙震
Owner WUBA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products