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

Data random extraction method and apparatus in information flow

An information flow and random selection technology, applied in the computer field, can solve the problems of large memory usage, high database bandwidth transmission cost, high overhead, etc., and achieve the effect of reducing bandwidth consumption, improving data reading performance, and improving reading performance.

Active Publication Date: 2017-04-19
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1. In the process of reading the latest N pieces of data from the information flow in the database, the memory usage is large and the cost of database bandwidth transmission is high.
[0009] 2. After randomly generating n random numbers, the process overhead of obtaining n pieces of data one by one from the latest N pieces of data using a loop method is relatively large
[0010] 3. Since the latest N pieces of data read from the information flow will be cached, the latest dynamic data of the information flow during the cache period will not be exposed if the flow speed is relatively high

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
  • Data random extraction method and apparatus in information flow
  • Data random extraction method and apparatus in information flow
  • Data random extraction method and apparatus in information flow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Embodiments of the present invention provide a method and device for randomly extracting data from information streams, which are used to effectively reduce memory and database bandwidth consumption and improve data reading performance.

[0058] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0059] Aiming at the actual requirement of randomly extracting some data from the latest dynamic data of the information flow for display, that is, "the business requirement of randomly extracting data from the information flow", in order to effectively reduce memory and database band...

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

Embodiments of the present invention provides a data random extraction method and apparatus in an information flow, in order to effectively reduce the memory and database bandwidth consumption, and improve data reading performance. The data random extraction method in the information flow comprises: setting random extraction parameters according to service requirements of randomly extracting data in the information flow, wherein the random extraction parameters comprises the total amount of latest dynamic data, and the randomly extracted quantity; determining the paging quantity according to the total amount of latest dynamic data and the randomly extracted quantity, and randomly selecting a logic page number according to the determined paging quantity; querying whether a corresponding cache key value has cached data according to the logical page number, and if so, displaying the cache data corresponding to the cache key value directly in the cache; and otherwise, reading paging data in the database to display according to the logical page number and the randomly extracted quantity, and storing the read paging data to the cache, wherein the cache key value comprises a service unique identifier code and the logical page number.

Description

technical field [0001] The invention belongs to the technical field of computers, in particular to a method and device for randomly extracting data in an information flow. Background technique [0002] With the advancement of Internet technology, the development of Social Network Service (SNS) is noticeable. Social networks play an important role in people's lives, and have become the network services with the widest coverage of users, the greatest impact of communication, and the highest commercial value. [0003] At present, the production and dissemination of News Feed in social networks is very fast. Taking the Weibo platform as an example, on the Weibo big screen (also known as the Weibo wall, it is used in exhibitions, concerts, industry summits, live TV broadcasts, weddings, etc.) On-site and other places to display a specific theme Weibo large screen) and other interactive products, it is usually necessary to randomly extract some data from the latest dynamic data o...

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): G06F17/30G06Q50/00
CPCG06F16/254G06Q50/01
Inventor 李传松
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More