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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com