File size: 3,453 Bytes
406cec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
  "cache_advisor": {
    "query_length": 0.19116243566746416,
    "query_type": 0.02137394504176744,
    "num_tables": 0.09222282366305111,
    "num_joins": 0.0748793608388074,
    "num_conditions": 0.00154549784133088,
    "num_aggregates": 0.0618503755668228,
    "num_subqueries": 0.05156804724205885,
    "num_columns": 0.07578970828634744,
    "has_distinct": 0.04377194157855687,
    "has_order_by": 0.03645645249300166,
    "has_group_by": 0.04425844049972725,
    "has_having": 0.0022541480803507635,
    "has_limit": 0.042062573427220216,
    "has_offset": 0.0,
    "has_where": 0.008477512665144578,
    "has_like": 0.0,
    "has_in_clause": 0.005441079955562388,
    "has_between": 0.0,
    "has_exists": 0.0009272674367364887,
    "has_window_func": 0.010171898283664462,
    "has_cte": 0.0017415634776680982,
    "has_union": 0.021229522300210402,
    "has_case": 0.010714231584388431,
    "has_cast": 0.0,
    "nesting_depth": 0.1651162458494366,
    "num_and_or": 0.0018247999615881344,
    "num_string_literals": 0.02825993434632328,
    "num_numeric_literals": 0.006900193912770316
  },
  "ttl_recommender": {
    "query_length": 0.49334167936522283,
    "query_type": 0.011472503279799304,
    "num_tables": 0.04121816512371646,
    "num_joins": 0.05664091770080013,
    "num_conditions": 2.6766564086239894e-05,
    "num_aggregates": 0.08454674221524747,
    "num_subqueries": 0.012819407143812049,
    "num_columns": 0.003503947545486143,
    "has_distinct": 0.0058846177923228245,
    "has_order_by": 0.0030112892658353254,
    "has_group_by": 0.11555986501253222,
    "has_having": 0.0005654100636265899,
    "has_limit": 0.020011249481941062,
    "has_offset": 0.0,
    "has_where": 0.0006198304413308254,
    "has_like": 0.0,
    "has_in_clause": 0.006723068906959933,
    "has_between": 0.0,
    "has_exists": 1.5939534844064166e-05,
    "has_window_func": 0.0016085055032078448,
    "has_cte": 2.3841716696771857e-05,
    "has_union": 5.051873650507809e-05,
    "has_case": 2.1925568628142657e-05,
    "has_cast": 0.0,
    "nesting_depth": 0.13173720022142668,
    "num_and_or": 2.27992721191164e-05,
    "num_string_literals": 0.005676787044969987,
    "num_numeric_literals": 0.004897022498882968
  },
  "complexity_estimator": {
    "query_length": 0.5344926759628151,
    "query_type": 0.0015962377188123598,
    "num_tables": 0.031559929024199504,
    "num_joins": 0.02335110657414861,
    "num_conditions": 5.757862902242119e-05,
    "num_aggregates": 0.04750932601796666,
    "num_subqueries": 0.008970394733974358,
    "num_columns": 0.00588104652025957,
    "has_distinct": 0.01062122091510926,
    "has_order_by": 0.0024661023837127443,
    "has_group_by": 0.061828695835283276,
    "has_having": 0.00034502697726715757,
    "has_limit": 0.020807067356268808,
    "has_offset": 0.0,
    "has_where": 0.0004570231775885458,
    "has_like": 0.0,
    "has_in_clause": 0.013672027252240813,
    "has_between": 0.0,
    "has_exists": 7.242098418966911e-05,
    "has_window_func": 0.0009971635825058846,
    "has_cte": 1.4790912091677233e-05,
    "has_union": 0.006250913065401877,
    "has_case": 1.6824403324258042e-05,
    "has_cast": 0.0,
    "nesting_depth": 0.22281668760327789,
    "num_and_or": 7.125446039372882e-05,
    "num_string_literals": 0.003162795018354366,
    "num_numeric_literals": 0.0029816908917914696
  }
}