Data querying method and device

A data query device and data query technology, applied in the field of data processing, can solve problems such as low query efficiency, and achieve the effects of saving data statistics time and improving data query efficiency

Inactive Publication Date: 2017-02-22
NUBIA TECHNOLOGY CO LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose a data query method and device, aiming at solving the problem of low query efficiency

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 querying method and device
  • Data querying method and device
  • Data querying method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 As shown, a preferred embodiment of the present invention proposes a data query method, the method includes steps:

[0030] Step 110, receiving a data query request.

[0031] Specifically, the data query request sent by the user through the platform page is received. Wherein, the data to be queried may be to inquire about the download volume of a certain application, and the like.

[0032] Further, the data query request includes a query object, and the query object includes a query time period and query content. For example, if a data query request is received at 8 o'clock on September 20, 2016, and the download volume in the past week is required to be counted, then the past week (that is, September 12, 2016 to September 19, 2016) is the query time period. The number of downloads is the content of the query.

[0033] Step 120, judging whether the data query request is suitable for offline statistical query, if yes, go to step 130, if not, go to st...

Embodiment 2

[0060] Please refer to image 3 , is a schematic flowchart of a data query method provided in another preferred embodiment of the present invention. The data query method includes steps:

[0061] Step 310, respectively counting data in at least one predetermined time period to obtain offline statistical data.

[0062] Specifically, the mr method of mongodb is used for calculation and statistics, so that the data can be calculated in batches in mongodb, and the calculation results are directly saved in mongodb, and the whole process does not need to take out the data.

[0063] Please refer to Figure 4 , step 310 further includes:

[0064] Step 410, setting a statistical period.

[0065] Step 420, according to the statistics period, regularly collect data in at least one predetermined period of time to obtain offline statistical data.

[0066] Step 430, saving the statistical results in the database.

example 1

[0067] Example 1: Take offline statistics of yesterday's data as an example.

[0068] Please refer to Figure 5 , the offline data statistics method of Example 1 is:

[0069] Step 510, set the statistics period as one day.

[0070] Step 520, obtain the original table of yesterday's reported data, and perform mr calculation to obtain the statistical result of yesterday's data.

[0071] Step 530, saving the statistical results in yesterday's result table.

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 a data querying method and device, and belongs to the technical field of data processing. The method comprises the steps of receiving a data querying request; determining a querying mode for which the data querying request is suitable; if the data querying request is suitable for offline statistical querying, performing querying on the offline statistical querying; if the data querying request is suitable for real-time statistical querying, performing real-time querying through a data statistical tool. According to the data querying method and device, the statistical querying time is shortened to the maximum extent, and the data querying efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data query method and device. Background technique [0002] After each application is launched, if you want to know the user's usage, you need to make statistics on user behavior data, that is, data statistics. In order to facilitate the operation and maintenance personnel to analyze the data, a common method is to provide a page for display. However, often due to the large amount of data and the large query time span (for example: viewing the downloads in a whole year), it takes too long to query once, and due to the statistical background of the previous application center, as the amount of data increases , when clicking on the query, the page will often freeze directly, affecting work efficiency. [0003] Therefore, it is necessary to propose a data query method and device to avoid the occurrence of the above situation. Contents of the invention [0004] The mai...

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
CPCG06F16/2453G06F16/2462
Inventor 彭小春
Owner NUBIA TECHNOLOGY CO LTD
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