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

Commodity summarizing and counting method based on cost model

A statistical method and product technology, applied in database model, calculation, program control design, etc., can solve the problems of large resource consumption, low performance of commodity data summary statistics, and full cluster resources, etc., and achieve the effect of summary statistics stability

Inactive Publication Date: 2021-03-30
CHINA UNITECHS
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In a multi-user environment, resource allocation and isolation can be performed for users, but for each user resource, scheduling algorithms such as FIFO (first in first out) and FAIR (fair scheduling) are still used, which cannot be based on the cost (cost) brought by the query. ) for resource isolation
[0003] In the query summary of general product data, the consumption of resources is particularly large, and the execution time will be very long
If several such queries are executed concurrently under the same user at the same time, it is easy to cause the cluster resources to be fully occupied, making it impossible for other queries to obtain enough resources (even if this query occupies a small amount of resources and executes quickly), in this way, commodity data The summary statistics performance is low, which affects user experience and decision-making efficiency. In severe cases, it may cause application OOM or cluster crash

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
  • Commodity summarizing and counting method based on cost model
  • Commodity summarizing and counting method based on cost model
  • Commodity summarizing and counting method based on cost model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The principle and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and realize the present invention, but not to limit the present invention in any way. the scope of the invention. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0050] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, device, method or computer program product. Therefore, the present disclosure may be embodied in the form of complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0051] According to the embodiment of the present invention, a commodity summa...

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 commodity summary statistics method based on a cost model. The method comprises the following steps: collecting table management information; analyzing the SQL statement to obtain an execution plan, calculating the cost of the execution plan according to the SQL statement, and rating the calculated cost; aiming at the cost level after the SQL execution plan, distributingthe SQL statement to different resources for execution; and storing the execution log for evaluation and analysis, dividing a cost cluster level, and carrying out continuous learning and adjustment byusing an algorithm according to a relationship among the cost value, the cost cluster level and a cost calculation result. According to the method, the SQL statement is subjected to cost calculationand analysis, the resource consumption conditions caused by the SQL statements are evaluated, summarized and counted, the SQL statements are issued to different resources for task scheduling executionaccording to the cost rating result, the resource isolation and protection effects are achieved, and the service of a user is also perfected.

Description

technical field [0001] The invention relates to the field of commodity data summary, in particular to a commodity summary statistics method based on a cost (cost) model. Background technique [0002] At present, the horizontal expansion of commodity data has led to a sharp increase in the amount of data, and it is necessary to collect data for various commodities. Generally, distributed systems use scheduling algorithms such as FIFO (first in first out) and FAIR (fair scheduling) for OLAP (Online Analytical Processing) queries to allocate resources. For example, Spark configures multiple resource pools. By default, the scheduling mode of Spark is FIFO ( First-in, first-out), whoever submits first executes first, and the subsequent tasks need to wait for the previous tasks to be executed, while the FAIR (fair scheduling) mode supports grouping tasks in the scheduling pool. Different scheduling pools have different weights, and tasks can be assigned according to the weight To...

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): G06F9/54G06F16/242G06F16/28
CPCG06F9/546G06F16/2433G06F16/283
Inventor 王俐明
Owner CHINA UNITECHS