saza-ku / isucon13

0 stars 0 forks source link

11250742 #82

Open saza-ku opened 8 months ago

saza-ku commented 8 months ago

isucon1

alp

+-------+--------+------------------------------------------+-------+-------+---------+-------+-------+
| COUNT | METHOD |                   URI                    |  MIN  |  MAX  |   SUM   |  AVG  |  P99  |
+-------+--------+------------------------------------------+-------+-------+---------+-------+-------+
| 20513 | GET    | /api/user/.+/icon                        | 0.004 | 0.116 | 230.998 | 0.011 | 0.044 |
| 2510  | POST   | /api/livestream/.+/livecomment           | 0.012 | 0.132 | 87.730  | 0.035 | 0.076 |
| 2308  | GET    | /api/livestream/.+/livecomment           | 0.004 | 0.096 | 78.160  | 0.034 | 0.076 |
| 2340  | GET    | /api/livestream/.+/reaction              | 0.004 | 0.108 | 75.137  | 0.032 | 0.076 |
| 2117  | POST   | /api/livestream/.+/reaction              | 0.004 | 0.104 | 69.533  | 0.033 | 0.076 |
| 556   | POST   | /api/register                            | 0.004 | 0.172 | 57.104  | 0.103 | 0.156 |
| 1183  | GET    | /api/livestream/.+                       | 0.004 | 0.108 | 55.008  | 0.046 | 0.084 |
| 619   | GET    | /api/livestream                          | 0.004 | 0.204 | 34.626  | 0.056 | 0.172 |
| 472   | POST   | /api/livestream/.+                       | 0.024 | 0.128 | 30.404  | 0.064 | 0.108 |
| 1506  | GET    | /api/livestream/.+/report                | 0.004 | 0.084 | 18.816  | 0.012 | 0.052 |
| 748   | POST   | /api/livestream/.+/moderate              | 0.004 | 0.064 | 16.964  | 0.023 | 0.052 |
| 1123  | GET    | /api/livestream/.+/ngwords               | 0.004 | 0.068 | 12.456  | 0.011 | 0.044 |
| 591   | POST   | /api/icon                                | 0.004 | 0.088 | 9.832   | 0.017 | 0.052 |
| 561   | POST   | /api/login                               | 0.004 | 0.100 | 6.356   | 0.011 | 0.040 |
| 472   | GET    | /api/tag                                 | 0.004 | 0.064 | 6.157   | 0.013 | 0.052 |
| 204   | POST   | /api/livestream/.+/enter                 | 0.008 | 0.044 | 2.792   | 0.014 | 0.040 |
| 24    | GET    | /api/user/.+/livestream                  | 0.040 | 0.264 | 2.592   | 0.108 | 0.264 |
| 26    | GET    | /api/user/.+/statistics                  | 0.024 | 0.144 | 2.468   | 0.095 | 0.144 |
| 57    | POST   | /api/livestream/.+/livecomment/.+/report | 0.004 | 0.076 | 2.272   | 0.040 | 0.076 |
| 193   | DELETE | /api/livestream/.+/exit                  | 0.004 | 0.068 | 2.264   | 0.012 | 0.060 |
| 13    | GET    | /api/livestream/.+/statistics            | 0.024 | 0.116 | 0.960   | 0.074 | 0.116 |
| 25    | GET    | /api/user/.+/theme                       | 0.004 | 0.020 | 0.248   | 0.010 | 0.020 |
| 5     | GET    | /api/user/.+                             | 0.004 | 0.004 | 0.012   | 0.002 | 0.004 |
| 1     | GET    | /api/payment                             | 0.000 | 0.000 | 0.000   | 0.000 | 0.000 |
+-------+--------+------------------------------------------+-------+-------+---------+-------+-------+

slow query

explain

Reading from STDIN ...

# No events processed.

netdata

http://localhost:19991/#menu_services;after=1700898163323;before=1700898239401

pprof

go tool pprof -http=0.0.0.0:1080 http://isucon1/pprof/11250742
saza-ku commented 8 months ago

isucon2

alp

+-------+--------+-----+-----+-----+-----+-----+-----+
| COUNT | METHOD | URI | MIN | MAX | SUM | AVG | P99 |
+-------+--------+-----+-----+-----+-----+-----+-----+
+-------+--------+-----+-----+-----+-----+-----+-----+

slow query

Count: 33039  Time=0.00s (54s)  Lock=0.00s (0s)  Rows=0.2 (6166), isudns[isudns]@isucon1
  SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=N and name='S' and domain_id=N

Count: 24022  Time=0.00s (37s)  Lock=0.00s (0s)  Rows=0.5 (12167), isudns[isudns]@isucon1
  SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=N and type='S' and name='S'

Count: 40290  Time=0.00s (4s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='S'

Count: 554  Time=0.00s (2s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  delete from records where domain_id=N and name='S' and type='S'

Count: 1108  Time=0.00s (1s)  Lock=0.00s (0s)  Rows=0.5 (554), isudns[isudns]@isucon1
  SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=N and type='S' and name='S' and domain_id=N

Count: 90988  Time=0.00s (1s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  #

Count: 554  Time=0.00s (0s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  commit

Count: 554  Time=0.00s (0s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values ('S',N,N,'S',N,N,'S',NULL,N)

Count: 554  Time=0.00s (0s)  Lock=0.00s (0s)  Rows=1.0 (554), isudns[isudns]@isucon1
  select id,name,master,last_check,notified_serial,type,options,catalog,account from domains where name='S'

Count: 1108  Time=0.00s (0s)  Lock=0.00s (0s)  Rows=0.0 (0), isudns[isudns]@isucon1
  SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED

explain

Reading from STDIN ...

# 11.9s user time, 50ms system time, 36.75M rss, 51.15M vsz
# Current date: Sat Nov 25 07:44:17 2023
# Hostname: ip-192-168-0-12
# Files: STDIN
# Overall: 193.33k total, 20 unique, 2.36k QPS, 1.25x concurrency ________
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:44:05
# Attribute          total     min     max     avg     95%  stddev  median
# ============     ======= ======= ======= ======= ======= ======= =======
# Exec time           102s     1us    15ms   529us     2ms   769us    89us
# Lock time          145ms       0     3ms       0     1us    13us     1us
# Rows sent         18.99k       0       1    0.10    0.99    0.30       0
# Rows examine      87.66M       0   1.79k  475.46   1.69k  707.50       0
# Query size        15.21M       5     223   82.48  151.03   48.70  112.70

# Profile
# Rank Query ID                      Response time Calls R/Call V/M   Item
# ==== ============================= ============= ===== ====== ===== ====
#    1 0x42EF7D7D98FBCC9723BF896E... 54.8579 53.6% 33039 0.0017  0.00 SELECT records
#    2 0x3D83BC87F3B3A00D571FFC81... 37.4339 36.6% 24022 0.0016  0.00 SELECT records
#    3 0x22279D81D51006139E0C7640...  4.5390  4.4% 40290 0.0001  0.00 SELECT domains domainmetadata
#    4 0x859BBB7E9D760686137A9444...  2.0505  2.0%   554 0.0037  0.00 DELETE records
# MISC 0xMISC                         3.4148  3.3% 95427 0.0000   0.0 <16 ITEMS>

# Query 1: 500.59 QPS, 0.83x concurrency, ID 0x42EF7D7D98FBCC9723BF896EBFC51D24 at byte 11034852
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         17   33039
# Exec time     53     55s   702us    15ms     2ms     2ms   471us     2ms
# Lock time     26    38ms       0   107us     1us     1us     1us     1us
# Rows sent     31   6.02k       0       1    0.19    0.99    0.39       0
# Rows examine  56  49.30M   1.25k   1.79k   1.53k   1.69k  150.71   1.46k
# Query size    29   4.46M     129     223  141.65  158.58   11.68  136.99
# String:
# Hosts        isucon1
# Users        isudns
# Query_time distribution
#   1us
#  10us
# 100us  #
#   1ms  ################################################################
#  10ms  #
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'records'\G
#    SHOW CREATE TABLE `records`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='2d8pbulszvk0.u.isucon.dev' and domain_id=4\G
# EXPLAIN failed: DBD::mysql::st execute failed: Table 'isupipe.records' doesn't exist [for Statement "EXPLAIN SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='2d8pbulszvk0.u.isucon.dev' and domain_id=4"] at /usr/bin/pt-query-digest line 7796.

# Query 2: 363.97 QPS, 0.57x concurrency, ID 0x3D83BC87F3B3A00D571FFC8104A6E50C at byte 26867979
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         12   24022
# Exec time     36     37s   661us    10ms     2ms     2ms   451us     1ms
# Lock time     21    31ms       0     2ms     1us     1us    12us     1us
# Rows sent     62  11.88k       0       1    0.51    0.99    0.50    0.99
# Rows examine  40  35.90M   1.25k   1.79k   1.53k   1.69k  151.00   1.46k
# Query size    20   3.10M     126     222  135.43  151.03   11.04  124.25
# String:
# Hosts        isucon1
# Users        isudns
# Query_time distribution
#   1us
#  10us
# 100us  #
#   1ms  ################################################################
#  10ms  #
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'records'\G
#    SHOW CREATE TABLE `records`\G
# EXPLAIN 
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='SOA' and name='s407kjdvzba6o30.u.isucon.dev'\G
# EXPLAIN failed: DBD::mysql::st execute failed: Table 'isupipe.records' doesn't exist [for Statement "EXPLAIN SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='SOA' and name='s407kjdvzba6o30.u.isucon.dev'"] at /usr/bin/pt-query-digest line 7796.

# Query 3: 610.45 QPS, 0.07x concurrency, ID 0x22279D81D51006139E0C76405B54C261 at byte 10390556
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         20   40290
# Exec time      4      5s    71us     6ms   112us   131us    96us    98us
# Lock time     41    60ms       0     1ms     1us     1us    11us     1us
# Rows sent      0       0       0       0       0       0       0       0
# Rows examine   0       0       0       0       0       0       0       0
# Query size    28   4.38M     114     114     114     114       0     114
# String:
# Hosts        isucon1
# Users        isudns
# Query_time distribution
#   1us
#  10us  ######################
# 100us  ################################################################
#   1ms  #
#  10ms
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'domains'\G
#    SHOW CREATE TABLE `domains`\G
#    SHOW TABLE STATUS LIKE 'domainmetadata'\G
#    SHOW CREATE TABLE `domainmetadata`\G
# EXPLAIN 
select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='u.isucon.dev'\G
# EXPLAIN failed: DBD::mysql::st execute failed: Table 'isupipe.domains' doesn't exist [for Statement "EXPLAIN select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='u.isucon.dev'"] at /usr/bin/pt-query-digest line 7796.

# Query 4: 8.39 QPS, 0.03x concurrency, ID 0x859BBB7E9D760686137A944406874C4D at byte 54906139
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          0     554
# Exec time      2      2s     2ms     8ms     4ms     5ms   701us     4ms
# Lock time      9    13ms       0     3ms    24us     1us   220us     1us
# Rows sent      0       0       0       0       0       0       0       0
# Rows examine   0 842.08k   1.25k   1.79k   1.52k   1.69k  157.55   1.46k
# Query size     0  46.27k      78      93   85.52   88.31    3.37   84.10
# String:
# Hosts        isucon1
# Users        isudns
# Query_time distribution
#   1us
#  10us
# 100us
#   1ms  ################################################################
#  10ms
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'records'\G
#    SHOW CREATE TABLE `records`\G
delete from records where domain_id=4 and name='yutaito0.u.isucon.dev' and type='A'\G
# Converted for EXPLAIN
# EXPLAIN 
select * from  records where domain_id=4 and name='yutaito0.u.isucon.dev' and type='A'\G

netdata

http://localhost:19992/#menu_services;after=1700898163336;before=1700898243344

pprof

go tool pprof -http=0.0.0.0:1080 http://isucon2/pprof/11250742
saza-ku commented 8 months ago

isucon3

alp

+-------+--------+-----+-----+-----+-----+-----+-----+
| COUNT | METHOD | URI | MIN | MAX | SUM | AVG | P99 |
+-------+--------+-----+-----+-----+-----+-----+-----+
+-------+--------+-----+-----+-----+-----+-----+-----+

slow query

Count: 16774  Time=0.00s (12s)  Lock=0.00s (0s)  Rows=1.0 (16774), isucon[isucon]@isucon1
  SELECT * FROM themes WHERE user_id = N

Count: 37259  Time=0.00s (9s)  Lock=0.00s (0s)  Rows=0.9 (33875), isucon[isucon]@isucon1
  SELECT icon_path FROM icons WHERE user_id = N

Count: 668  Time=0.01s (7s)  Lock=0.00s (0s)  Rows=2.3 (1565), isucon[isucon]@isucon1
  SELECT * FROM livestreams WHERE user_id = N

Count: 55959  Time=0.00s (5s)  Lock=0.00s (0s)  Rows=1.0 (55959), isucon[isucon]@isucon1
  SELECT * FROM tags WHERE id = N

Count: 469  Time=0.01s (5s)  Lock=0.00s (0s)  Rows=0.0 (0), isucon[isucon]@isucon1
  UPDATE reservation_slots SET slot = slot - N WHERE start_at >= N AND end_at <= N

Count: 470  Time=0.01s (4s)  Lock=0.00s (0s)  Rows=9.9 (4635), isucon[isucon]@isucon1
  SELECT * FROM reservation_slots WHERE start_at >= N AND end_at <= N FOR UPDATE

Count: 21124  Time=0.00s (2s)  Lock=0.00s (0s)  Rows=1.0 (21123), isucon[isucon]@isucon1
  SELECT * FROM users WHERE name = 'S'

Count: 11296  Time=0.00s (2s)  Lock=0.00s (0s)  Rows=5.0 (55968), isucon[isucon]@isucon1
  SELECT * FROM livestream_tags WHERE livestream_id = N

Count: 16196  Time=0.00s (2s)  Lock=0.00s (0s)  Rows=1.0 (16196), isucon[isucon]@isucon1
  SELECT * FROM users WHERE id = N

Count: 748  Time=0.00s (1s)  Lock=0.00s (0s)  Rows=2151.4 (1609241), isucon[isucon]@isucon1
  SELECT * FROM livecomments

explain

Reading from STDIN ...

# 18.1s user time, 60ms system time, 38.00M rss, 52.41M vsz
# Current date: Sat Nov 25 07:44:24 2023
# Hostname: ip-192-168-0-13
# Files: STDIN
# Overall: 294.02k total, 69 unique, 2.94k QPS, 0.73x concurrency ________
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:44:23
# Attribute          total     min     max     avg     95%  stddev  median
# ============     ======= ======= ======= ======= ======= ======= =======
# Exec time            73s     1us    59ms   247us   657us     1ms    84us
# Lock time          255ms       0     5ms       0     1us    17us     1us
# Rows sent          2.63M       0   7.77k    9.37    4.96  124.90    0.99
# Rows examine      55.13M       0  12.85k  196.59   1.20k  715.27    0.99
# Query size        12.57M       6     871   44.83   97.36   52.63   34.95

# Profile
# Rank Query ID                     Response time Calls  R/Call V/M   Item
# ==== ============================ ============= ====== ====== ===== ====
#    1 0x38BC86A45F31C6B1EE32467... 12.4392 17.1%  16775 0.0007  0.00 SELECT themes
#    2 0xB4FC1F99A422ACB1A54E6E2...  9.2752 12.8%  37260 0.0002  0.00 SELECT icons
#    3 0x9EAD6C0CE525E3693EE27FF...  7.8199 10.8%    668 0.0117  0.00 SELECT livestreams
#    4 0xFBC5564AE716EAE82F20BFB...  5.8264  8.0%  55959 0.0001  0.00 SELECT tags
# MISC 0xMISC                       37.2978 51.3% 183359 0.0002   0.0 <65 ITEMS>

# Query 1: 167.75 QPS, 0.12x concurrency, ID 0x38BC86A45F31C6B1EE324671506C898A at byte 54627559
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:44:23
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          5   16775
# Exec time     17     12s   240us    14ms   741us     2ms   599us   568us
# Lock time      6    17ms       0   873us     1us     1us     7us     1us
# Rows sent      0  16.38k       1       1       1       1       0       1
# Rows examine  37  20.62M    1000   1.52k   1.26k   1.46k  153.52   1.26k
# Query size     5 671.57k      38      41   40.99   40.45    0.14   40.45
# String:
# Hosts        isucon1
# Users        isucon
# Query_time distribution
#   1us
#  10us
# 100us  ################################################################
#   1ms  ##########
#  10ms  #
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'themes'\G
#    SHOW CREATE TABLE `themes`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT * FROM themes WHERE user_id = 1159\G
# *************************** 1. row ***************************
#            id: 1
#   select_type: SIMPLE
#         table: themes
#    partitions: NULL
#          type: ALL
# possible_keys: NULL
#           key: NULL
#       key_len: NULL
#           ref: NULL
#          rows: 1554
#      filtered: 10.00
#         Extra: Using where

# Query 2: 372.60 QPS, 0.09x concurrency, ID 0xB4FC1F99A422ACB1A54E6E2F01B84879 at byte 70793359
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:44:23
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         12   37260
# Exec time     12      9s    50us    20ms   248us   541us   310us   194us
# Lock time     14    37ms       0     1ms     1us     1us    10us     1us
# Rows sent      1  33.08k       0       1    0.91    0.99    0.29    0.99
# Rows examine  18  10.17M       0     546  286.15  511.45  151.56  284.79
# Query size    13   1.70M      45      48   47.92   46.83    0.21   46.83
# String:
# Hosts        isucon1
# Users        isucon
# Query_time distribution
#   1us
#  10us  #####
# 100us  ################################################################
#   1ms  #
#  10ms  #
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'icons'\G
#    SHOW CREATE TABLE `icons`\G
# EXPLAIN 
SELECT icon_path FROM icons WHERE user_id = 1144\G
# *************************** 1. row ***************************
#            id: 1
#   select_type: SIMPLE
#         table: icons
#    partitions: NULL
#          type: ALL
# possible_keys: NULL
#           key: NULL
#       key_len: NULL
#           ref: NULL
#          rows: 546
#      filtered: 10.00
#         Extra: Using where

# Query 3: 10.12 QPS, 0.12x concurrency, ID 0x9EAD6C0CE525E3693EE27FFC9AAF05A3 at byte 23464216
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          0     668
# Exec time     10      8s     4ms    42ms    12ms    22ms     6ms    10ms
# Lock time      0   759us       0    90us     1us     1us     3us     1us
# Rows sent      0   1.53k       0      21    2.34    6.98    2.70    0.99
# Rows examine   8   4.95M   7.32k   7.78k   7.58k   7.68k  170.67   7.31k
# Query size     0  30.00k      43      46   45.99   44.60    0.16   44.60
# String:
# Hosts        isucon1
# Users        isucon
# Query_time distribution
#   1us
#  10us
# 100us
#   1ms  ####################################################
#  10ms  ################################################################
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'livestreams'\G
#    SHOW CREATE TABLE `livestreams`\G
# EXPLAIN 
SELECT * FROM livestreams WHERE user_id = 1069\G
# *************************** 1. row ***************************
#            id: 1
#   select_type: SIMPLE
#         table: livestreams
#    partitions: NULL
#          type: ALL
# possible_keys: NULL
#           key: NULL
#       key_len: NULL
#           ref: NULL
#          rows: 7849
#      filtered: 10.00
#         Extra: Using where

# Query 4: 847.86 QPS, 0.09x concurrency, ID 0xFBC5564AE716EAE82F20BFB45F6C37E7 at byte 3804758
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T07:42:43 to 2023-11-25T07:43:49
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         19   55959
# Exec time      8      6s    42us     8ms   104us   214us   189us    69us
# Lock time     26    67ms       0     2ms     1us     1us    15us     1us
# Rows sent      2  54.65k       1       1       1       1       0       1
# Rows examine   0  54.65k       1       1       1       1       0       1
# Query size    13   1.71M      31      33   31.96   31.70    0.41   31.70
# String:
# Hosts        isucon1
# Users        isucon
# Query_time distribution
#   1us
#  10us  ################################################################
# 100us  #######
#   1ms  #
#  10ms
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS LIKE 'tags'\G
#    SHOW CREATE TABLE `tags`\G
# EXPLAIN 
SELECT * FROM tags WHERE id = 28\G
# *************************** 1. row ***************************
#            id: 1
#   select_type: SIMPLE
#         table: tags
#    partitions: NULL
#          type: const
# possible_keys: PRIMARY
#           key: PRIMARY
#       key_len: 8
#           ref: const
#          rows: 1
#      filtered: 100.00
#         Extra: NULL

netdata

http://localhost:19993/#menu_services;after=1700898163332;before=1700898243339

pprof

go tool pprof -http=0.0.0.0:1080 http://isucon3/pprof/11250742