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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
{
"context": {},
"data": {
"host": {
"hostname": "pc",
"canary": null
},
"active-record": {
"duration": "6ms",
"calls": "7 (0 cached)",
"details": [
{
"duration": 1.096,
"sql": "SELECT COUNT(*) FROM ((SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'ProjectBadge' AND \"badges\".\"project_id\" = 8)\nUNION\n(SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'GroupBadge' AND \"badges\".\"group_id\" IN (SELECT \"namespaces\".\"id\" FROM \"namespaces\" WHERE \"namespaces\".\"type\" = 'Group' AND \"namespaces\".\"id\" = 28))) badges",
"backtrace": [
"ee/lib/ee/peek/views/active_record.rb:11:in `generate_detail'",
"lib/peek/views/active_record.rb:42:in `block in setup_subscribers'",
"lib/gitlab/pagination/offset_pagination.rb:53:in `add_pagination_headers'",
"lib/gitlab/pagination/offset_pagination.rb:15:in `block in paginate'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `tap'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
"lib/api/helpers/pagination.rb:7:in `paginate'",
"lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
},
{
"duration": 0.817,
"sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
"backtrace": [
"lib/api/helpers.rb:112:in `find_project'",
"ee/lib/ee/api/helpers.rb:88:in `find_project!'",
"lib/api/helpers/members_helpers.rb:14:in `public_send'",
"lib/api/helpers/members_helpers.rb:14:in `find_source'",
"lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
},
{
"duration": 0.817,
"sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
"backtrace": [
"lib/api/helpers.rb:112:in `find_project'",
"ee/lib/ee/api/helpers.rb:88:in `find_project!'",
"lib/api/helpers/members_helpers.rb:14:in `public_send'",
"lib/api/helpers/members_helpers.rb:14:in `find_source'",
"lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
}
],
"warnings": []
},
"gitaly": {
"duration": "0ms",
"calls": 0,
"details": [],
"warnings": []
},
"redis": {
"duration": "0ms",
"calls": 1,
"details": [
{
"cmd": "get cache:gitlab:flipper/v1/feature/api_kaminari_count_with_limit",
"duration": 0.155,
"backtrace": [
"lib/gitlab/instrumentation/redis_interceptor.rb:30:in `call'",
"lib/feature.rb:81:in `enabled?'",
"lib/gitlab/pagination/offset_pagination.rb:30:in `paginate_with_limit_optimization'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
"lib/api/helpers/pagination.rb:7:in `paginate'",
"lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"storage": "Cache",
"warnings": [],
"instance": "Cache"
}
],
"warnings": []
},
"es": {
"duration": "0ms",
"calls": 0,
"details": [],
"warnings": []
}
},
"has_warnings": false
}
|