Acquisition method of ordering statistical data and ordering device

A technology of statistical data and sorting devices, applied in the field of sorting, can solve the problems of low sorting efficiency, long time required for sorting, rising storage costs, etc., and achieve the effects of higher sorting efficiency, shorter time, and reduced size

Active Publication Date: 2013-05-22
新浪技术(中国)有限公司
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0020] In the method for obtaining sorted statistical data based on stored statistical data, memory is used to store statistical data. Although the access speed of statistical data is fast, since all statistical data are stored in memory, the amount of data that can be stored is limited by memory. However, in practical applications, the amount of statistical data is very large. If the amount of data reaches tens of gigabytes (G) or hundreds of G, all of them are stored in memory. Since the price of memory is significantly higher than that of hard disks, storage costs will be incurred. Significantly increased; at the same time, sorting all the stored statistical data to obtain sorted statistical data, sorting takes a long time, and the sorting efficiency is still low

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
  • Acquisition method of ordering statistical data and ordering device
  • Acquisition method of ordering statistical data and ordering device
  • Acquisition method of ordering statistical data and ordering device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] The technical solutions of the various embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0077] The existing method for obtaining sorted statistical data based on statistical data, for the statistical data stored in the database, uses a hard disk to store the statistical data, regularly sorts the statistical data in the database, and uses the sorting results as an approximate As a result, the data access speed is low, and the amount of statistical data is large, resulting in long sorting time, low sorting efficiency, and poor real-time performance of statistical data; an...

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 acquisition method of ordering statistical data and an ordering device. The method includes: presetting first and second extended red-black trees used for storing statistical data in a memory; after receiving of the statistical data, querying in the memory; in case of failure in querying keys corresponding to the received statistical data, updating the statistical data stored in the memory according to corresponding values of the received statistical data, corresponding minimums of the statistical data stored in the first extended red-black tree and corresponding minimums and maximums of the statistical data stored in the second extended red-black tree; in case of success in querying, updating the statistical data queried in the first or second extended red-black tree according to the corresponding values of the received statistical data; and after receiving of an ordering query request, acquiring statistical data of a first ordering threshold, corresponding to the ordering query request, from the first extended red-black tree. By the use of the method, ordering time can be reduced and ordering efficiency of statistical data can be improved.

Description

technical field [0001] The present invention relates to sorting technology, in particular to a method and a sorting device for acquiring sorted statistical data. Background technique [0002] With the development of computer and network communication technology, the network has become an important tool for people to communicate and communicate in their daily life and work, resulting in massive statistical data on the network, such as information on page views by users, user registration on websites The amount information data, the game user amount information data in the game system and the points information data of each game user, the visit amount information data and the fan number information data of the Weibo account, etc. In order to quickly and effectively obtain the data required by user queries from the massive statistical data and better provide users with personalized services, it is necessary to effectively manage the massive statistical data generated in the net...

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 张任重
Owner 新浪技术(中国)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products