niftyisucon / isucon13

0 stars 0 forks source link

Benchmark result on isu1 (3,730) #2

Open github-actions[bot] opened 11 months ago

github-actions[bot] commented 11 months ago
COUNT 1XX 2XX 3XX 4XX 5XX METHOD URI MIN MAX SUM AVG P90 P95 P99 STDDEV MIN(BODY) MAX(BODY) SUM(BODY) AVG(BODY)
542 0 537 0 5 0 GET /api/livestream 0.004 7.132 258.813 0.478 1.120 1.432 1.896 0.611 0.000 37303.000 4439718.000 8191.362
1736 0 1730 0 6 0 GET /api/user/[a-zA-Z0-9]+ 0.004 20.000 245.048 0.141 0.244 0.352 0.740 0.875 0.000 85696.000 85451725.000 49223.344
489 0 483 0 6 0 POST /api/livestream 0.004 11.216 162.892 0.333 0.448 0.812 3.292 0.826 0.000 2710.000 867896.000 1774.838
44 0 43 0 1 0 GET /api/livestream/search 0.176 7.732 121.272 2.756 3.984 6.128 7.732 1.715 0.000 132607.000 3168695.000 72015.795
188 0 185 0 2 1 POST /api/register 0.004 1.468 49.068 0.261 0.504 0.712 1.068 0.210 0.000 504.000 86902.000 462.245
88 0 84 0 4 0 POST /api/livestream/reservation 0.152 1.836 41.544 0.472 0.932 1.108 1.836 0.397 0.000 1443.000 94459.000 1073.398
185 0 184 0 1 0 POST /api/icon 0.012 1.140 30.208 0.163 0.404 0.500 0.780 0.169 0.000 16.000 2836.000 15.330
193 0 191 0 2 0 POST /api/login 0.004 0.852 16.608 0.086 0.268 0.380 0.536 0.131 0.000 64.000 128.000 0.663
1 0 1 0 0 0 POST /api/initialize 15.312 15.312 15.312 15.312 15.312 15.312 15.312 0.000 27.000 27.000 27.000 27.000
66 0 66 0 0 0 GET /api/tag 0.012 1.132 10.788 0.163 0.540 0.744 1.132 0.253 6089.000 6095.000 402072.000 6092.000
12 0 12 0 0 0 DELETE /api/livestream 0.004 0.372 1.236 0.103 0.192 0.372 0.372 0.103 0.000 0.000 0.000 0.000
5 0 5 0 0 0 GET /api/user/[a-zA-Z0-9]+/theme 0.008 0.472 0.932 0.186 0.472 0.472 0.472 0.202 38.000 38.000 190.000 38.000
3 0 3 0 0 0 GET /api/user/me 0.004 0.004 0.004 0.001 0.004 0.004 0.004 0.002 235.000 247.000 729.000 243.000
1 0 1 0 0 0 GET /api/payment 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 21.000 21.000 21.000 21.000
github-actions[bot] commented 11 months ago
Reading from STDIN ...

# 27.6s user time, 100ms system time, 37.09M rss, 43.62M vsz
# Current date: Sat Nov 25 01:37:34 2023
# Hostname: ip-192-168-0-11
# Files: STDIN
# Overall: 438.75k total, 93 unique, 3.99k QPS, 4.53x concurrency ________
# Time range: 2023-11-25T01:34:43 to 2023-11-25T01:36:33
# Attribute          total     min     max     avg     95%  stddev  median
# ============     ======= ======= ======= ======= ======= ======= =======
# Exec time           498s     1us   546ms     1ms     5ms     5ms    69us
# Lock time          565ms       0    29ms     1us     1us    84us       0
# Rows sent        172.72k       0   7.32k    0.40    0.99   18.58       0
# Rows examine     139.53M       0  14.02k  333.47   1.26k   1.35k       0
# Query size        45.24M       5   1.94M  108.11  299.03   3.54k   31.70

# Profile
# Rank Query ID                           Response time  Calls  R/Call V/M
# ==== ================================== ============== ====== ====== ===
#    1 0xF7144185D9A142A426A36DC55C1D2623 136.0950 27.3%   5743 0.0237  0.01 SELECT livestream_tags
#    2 0x84B457C910C4A79FC9EBECB8B1065C66  49.0885  9.9%  10331 0.0048  0.01 SELECT icons
#    3 0x42EF7D7D98FBCC9723BF896EBFC51D24  47.4523  9.5%   6889 0.0069  0.00 SELECT records
#    4 0xDA556F9115773A1A99AA0165670CE848  42.8627  8.6% 128484 0.0003  0.01 ADMIN PREPARE
#    5 0xF1B8EF06D6CA63B24BFF433E06CCEB22  29.5315  5.9%   3029 0.0097  0.02 SELECT users livestreams livecomments
#    6 0xDB74D52D39A7090F224C4DEEAF3028C9  28.3369  5.7%   3032 0.0093  0.02 SELECT users livestreams reactions
#    7 0x3D83BC87F3B3A00D571FFC8104A6E50C  24.8249  5.0%   5030 0.0049  0.01 SELECT records
#    8 0x38BC86A45F31C6B1EE324671506C898A  15.9045  3.2%   8610 0.0018  0.00 SELECT themes
#    9 0x4ADE2DC90689F1C4891749AF54FB8D14  14.9886  3.0%  27956 0.0005  0.00 DELETE SELECT livecomments
#   10 0x59F1B6DD8D9FEC059E55B3BFD624E8C3  14.7152  3.0%    682 0.0216  0.01 SELECT reservation_slots
#   11 0xFFFCA4D67EA0A788813031B8BBC3B329  10.7906  2.2%   1984 0.0054  0.01 COMMIT
#   12 0x64CC8A4E8E4B390203375597CE4D611F   9.7409  2.0%    212 0.0459  0.01 SELECT ng_words
#   13 0xFBC5564AE716EAE82F20BFB45F6C37E7   7.6312  1.5%  20449 0.0004  0.00 SELECT tags
#   14 0x22279D81D51006139E0C76405B54C261   6.8584  1.4%   8264 0.0008  0.00 SELECT domains domainmetadata
#   15 0xDFFCC1D78939C4D781C7C58349101F50   6.1180  1.2%   1000 0.0061  0.00 INSERT users
#   16 0xD2A0864774622BA36F6557496405CF75   5.9255  1.2%   1185 0.0050  0.00 INSERT themes
#   17 0x8F7679D452333ED3C7D60D22131CEFD4   5.1840  1.0%  21669 0.0002  0.00 ADMIN RESET STMT
#   18 0xFD38427AE3D09E3883A680F7BAF95D3A   4.2749  0.9%  14992 0.0003  0.00 SELECT livestreams livecomments
#   19 0xA3401CA3ABCC04C3AB221DB8AD5CBF26   4.1650  0.8%     85 0.0490  0.02 UPDATE reservation_slots
#   20 0xC499D81D570D361DB61FC43A94BB888A   3.7778  0.8%  14992 0.0003  0.00 SELECT livestreams reactions
#   21 0x7F9C0C0BA9473953B723EE16C08655F1   3.3055  0.7%     86 0.0384  0.02 SELECT reservation_slots
#   22 0xEA1E6309EEEFF9A6831AD2FB940FC23C   3.0067  0.6%   8419 0.0004  0.00 SELECT users
#   23 0x859BBB7E9D760686137A944406874C4D   2.8964  0.6%    185 0.0157  0.01 DELETE records
#   24 0x9EAD6C0CE525E3693EE27FFC9AAF05A3   2.3555  0.5%     57 0.0413  0.01 SELECT livestreams
#   25 0x3A2B0EDA41C4E3576FCA6DA29A9B91DF   2.2265  0.4%    184 0.0121  0.03 INSERT icons
#   26 0x9AC623FA477E73A44D191D296850A025   1.7666  0.4%    370 0.0048  0.00 SELECT records
#   27 0xD6032FE08E1FE706A928B8B7CBA06B85   1.6378  0.3%   4322 0.0004  0.00 SELECT livestreams
#   28 0x07890000813C4CC7111FD2D3F3B3B4EB   1.5435  0.3% 128462 0.0000  0.00 ADMIN CLOSE STMT
#   29 0xEDE18C1523658A19E07525EAFCBA6BFE   1.2801  0.3%     24 0.0533  0.01 SELECT ng_words
#   30 0xB08B7B7486D2DFE2F2FE9CE78689FD79   1.0186  0.2%     20 0.0509  0.01 SELECT ng_words
#   31 0xFFF66E9B3D962FA319C8068B5C1997CD   0.8483  0.2%   1735 0.0005  0.00 ROLLBACK
#   32 0x3F155F5E71EFF856F0CF7B8430DE8C23   0.8415  0.2%   1927 0.0004  0.00 SELECT users
#   33 0xF1E5C5B0483E8BF764220BFACAE7CD16   0.8060  0.2%    184 0.0044  0.01 DELETE icons
#   34 0x9E2DA589A20EC24C34E11DDE0FBF5564   0.6405  0.1%   3546 0.0002  0.00 START
#   35 0x98F959E03B684A5538FD8402A0EE94AD   0.6099  0.1%    103 0.0059  0.00 INSERT tags
#   36 0x02B6A87E51A5A1B7646675DB67C57DE3   0.5456  0.1%      1 0.5456  0.00 INSERT ng_words
#   37 0xB78E63D0D9C72DDDAB7A3E53517FA04C   0.4775  0.1%    177 0.0027  0.00 SELECT livecomments
#   38 0xAD0C28443E1E5CFAFF1569DBB4F7E63A   0.4409  0.1%    211 0.0021  0.00 SELECT reactions
#   39 0x80E10371CE74ED05E09C79C72C73F8E1   0.4066  0.1%     86 0.0047  0.28 INSERT livestreams
#   40 0x0C1FCBB4E25B178AA3A46D4FECBA9BDC   0.3124  0.1%     22 0.0142  0.00 INSERT livestream_tags
#   41 0x77FB9E134D073862D1E78FEEC3436291   0.3111  0.1%   1465 0.0002  0.00 INSERT records
#   42 0x41F805E95754958A974F41AE07BEA625   0.2590  0.1%     26 0.0100  0.01 SELECT livecomments
#   43 0xB9AC05A7AE6C4E30B5B45F6F3CE05BE0   0.1737  0.0%    372 0.0005  0.01 SET
#   44 0xDF0AAE38E2AAFC85E6F50569CEF2285D   0.1546  0.0%      1 0.1546  0.00 INSERT reservation_slots
#   45 0xF3A502CCF34F7DA288CC1B75AD5AFA37   0.1454  0.0%    211 0.0007  0.00 INSERT livecomments
#   46 0x5D469B53C536D19CD15E40763ACC23C7   0.1316  0.0%    347 0.0004  0.01 INSERT livestream_tags
#   47 0x651E3772B8767A368CB47EE7389EEB33   0.1236  0.0%     13 0.0095  0.01 SELECT livestream_tags
#   48 0x64052B1C32B30DF53AB3292208B783B4   0.1059  0.0%    186 0.0006  0.00 INSERT users
#   49 0x5AEB6E4A781A3854CF642125E293FEE0   0.0940  0.0%    190 0.0005  0.00 INSERT reactions
#   50 0xDBB1C17D6ABA0156D8ABCE105DDDA1B2   0.0716  0.0%      1 0.0716  0.00 TRUNCATE TABLE users
#   51 0x2AAED5867123C749367FD8E4BBD796D2   0.0670  0.0%      1 0.0670  0.00 TRUNCATE TABLE livecomments
#   52 0x81E419F4B58AEB9B280B03DE44DD8B94   0.0662  0.0%    109 0.0006  0.00 SELECT livecomments
#   53 0x9C697B3F0446BBF7602663588252F020   0.0645  0.0%      1 0.0645  0.00 TRUNCATE TABLE livestream_viewers_history
#   54 0x1FB70DBF74628C9F2E9F0C3478771936   0.0602  0.0%      1 0.0602  0.00 TRUNCATE TABLE ng_words
#   55 0xBB7F4DC4E67BF30E0588D296FFAF009F   0.0581  0.0%      1 0.0581  0.00 TRUNCATE TABLE tags
#   56 0xAFFDC331C1D4BA089978A0B8DD00BFC8   0.0571  0.0%      1 0.0571  0.00 TRUNCATE TABLE livestreams
#   57 0x93A42F50BF286ACA749DF5F342FAC07B   0.0558  0.0%      1 0.0558  0.00 TRUNCATE TABLE livecomment_reports
#   58 0xA7C2E59AEF14D03CB65B227F3E3BA469   0.0520  0.0%      1 0.0520  0.00 TRUNCATE TABLE reservation_slots
#   59 0xE623383C5D789800DC0946925F90039F   0.0482  0.0%    186 0.0003  0.00 SELECT domains
#   60 0xD2978B45C67B47B5D73AC532EB40A95E   0.0463  0.0%      1 0.0463  0.00 TRUNCATE TABLE themes
#   61 0x08A6ACD83D579DD8A808134B32AD376B   0.0459  0.0%      1 0.0459  0.00 TRUNCATE TABLE livestream_tags
#   62 0x544239977D2094F805A7B062DE95673A   0.0453  0.0%     66 0.0007  0.00 SELECT tags
#   63 0x253CA101A906B3D56A95D1B8DCEE28EF   0.0449  0.0%      1 0.0449  0.00 TRUNCATE TABLE icons
#   64 0xFB296F703ACC41C3F94A9B7D75044F3C   0.0435  0.0%      1 0.0435  0.00 TRUNCATE TABLE reactions
#   65 0x07F6C3FF39ADD79FC63923A7EE938953   0.0431  0.0%      1 0.0431  0.00 INSERT livecomments
#   66 0x24C44C3518CE12293EF12410AEDA2393   0.0423  0.0%     31 0.0014  0.00 SELECT livestreams
#   67 0xEE4C51AE2BF74414C4892CBE11E894AA   0.0418  0.0%     20 0.0021  0.00 SELECT livecomments
#   68 0xE64D50F7AFC1AD5F465809A92DF4935E   0.0386  0.0%     19 0.0020  0.00 SELECT reactions
#   69 0x466EE4C87B17CAD4E692DE1D44EAD84D   0.0290  0.0%     32 0.0009  0.00 SELECT livecomment_reports
#   70 0x74232BDFFB94C567F0340DBE3285E458   0.0285  0.0%      1 0.0285  0.00 INSERT reactions
#   71 0x19A1F14EFC0F221D30AFCB1E1344BEBD   0.0268  0.0%      6 0.0045  0.00 SELECT users
#   72 0x050F7D44808F43E5D33D0B90BCF57CC9   0.0252  0.0%      2 0.0126  0.00 SELECT livestreams
#   73 0x827F41D30F8E37F04D8BDCD46C556FB3   0.0238  0.0%     44 0.0005  0.00 INSERT livecomment_reports
#   74 0x4B6FA79E206C6CED71D433A2FC998D69   0.0210  0.0%     49 0.0004  0.00 SELECT
#   75 0x8D589AFA4DFAEEED85FFF5AA78E5FF6A   0.0129  0.0%    186 0.0001  0.00 BEGIN
#   76 0xA0D956F292B7FEA0DCE68A5DD5F529E1   0.0114  0.0%     12 0.0010  0.00 DELETE livestream_viewers_history
#   77 0xB871CC5B0472067402F5739D108B2C1C   0.0104  0.0%     20 0.0005  0.00 SELECT livestreams
#   78 0x0C655718656DD9DDA39A0D11554A0C64   0.0085  0.0%     20 0.0004  0.00 INSERT ng_words
#   79 0x2B760561C10B5D133155AA306D0F407C   0.0069  0.0%     18 0.0004  0.00 SELECT livecomments
#   80 0xBF3194A2446AC20FC99B6CC7FA476A57   0.0051  0.0%     21 0.0002  0.00 INSERT livestream_viewers_history
#   81 0x49F80FBE1AC70F23A3DD076174FF1AA9   0.0037  0.0%      2 0.0019  0.00 SELECT users livestreams reactions
#   82 0xF985E5835B84E84C7A721801818E98CE   0.0037  0.0%      2 0.0019  0.00 SELECT users livestreams reactions
#   83 0xC4625761E0CFD817F41B4802F152A489   0.0020  0.0%      1 0.0020  0.00 SELECT livecomments
#   84 0x20CD15DC47AF2F861B8F3C25D195ABE9   0.0019  0.0%     13 0.0001  0.00 SELECT tags
#   85 0x8B2044ADAE690405979131C33185F22A   0.0014  0.0%      5 0.0003  0.00 SELECT users
#   86 0x2C17BCA1E1077820CDC2EC6106F4D93E   0.0011  0.0%     18 0.0001  0.00 SELECT livestream_viewers_history
#   87 0xEDBC971AEC392917AA353644DE4C4CB4   0.0011  0.0%    288 0.0000  0.00 ADMIN QUIT
#   88 0x0E7680C04FF2596BE3A3649C5FAC418D   0.0008  0.0%      9 0.0001  0.00 SELECT
#   89 0xEBE4AF9F935DE1D48BB5BB3558C7FCC4   0.0006  0.0%      2 0.0003  0.00 SELECT livestreams livecomments
#   90 0x8F885091E23CB955C051B1204EE7D91D   0.0005  0.0%      2 0.0002  0.00 SELECT livestreams reactions
#   91 0xDFEFE5BA5D8654534DC8550C6E3DC9C0   0.0003  0.0%      1 0.0003  0.00 DELETE records
#   92 0x394E66DDE2823A903078D4C0F235B948   0.0002  0.0%      2 0.0001  0.00 SELECT livestreams livecomment_reports
#   93 0xF085F31DC1964EA538732B713E4B4108   0.0002  0.0%      2 0.0001  0.00 SELECT livestreams livestream_viewers_history

# Query 1: 61.10 QPS, 1.45x concurrency, ID 0xF7144185D9A142A426A36DC55C1D2623 at byte 49193133
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.01
# Time range: 2023-11-25T01:34:59 to 2023-11-25T01:36:33
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          1    5743
# Exec time     27    136s     2ms   104ms    24ms    48ms    16ms    24ms
# Lock time      2    13ms       0     2ms     2us     1us    31us     1us
# Rows sent     11  19.98k       0      11    3.56    4.96    1.86    4.96
# Rows examine  43  60.92M  10.71k  11.05k  10.86k  10.80k  173.50  10.80k
# Query size     0 313.85k      53      56   55.96   54.21    0.17   54.21
# String:
# Databases    isupipe
# Hosts        localhost
# Users        isucon
# Query_time distribution
#   1us
#  10us
# 100us
#   1ms  #######################
#  10ms  ################################################################
# 100ms  #
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS FROM `isupipe` LIKE 'livestream_tags'\G
#    SHOW CREATE TABLE `isupipe`.`livestream_tags`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT * FROM livestream_tags WHERE livestream_id = 7523\G

# Query 2: 109.90 QPS, 0.52x concurrency, ID 0x84B457C910C4A79FC9EBECB8B1065C66 at byte 77047977
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.01
# Time range: 2023-11-25T01:34:59 to 2023-11-25T01:36:33
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          2   10331
# Exec time      9     49s    48us   133ms     5ms    16ms     7ms     2ms
# Lock time      4    27ms       0     3ms     2us     1us    45us     1us
# Rows sent      4   7.44k       0       1    0.74    0.99    0.44    0.99
# Rows examine   0 794.52k       0     177   78.75  166.51   53.41   72.65
# Query size     0 441.45k      41      44   43.76   42.48    0.32   42.48
# String:
# Databases    isupipe
# Hosts        localhost
# Users        isucon
# Query_time distribution
#   1us
#  10us  ##############
# 100us  ####################
#   1ms  ################################################################
#  10ms  ##################
# 100ms  #
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS FROM `isupipe` LIKE 'icons'\G
#    SHOW CREATE TABLE `isupipe`.`icons`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT image FROM icons WHERE user_id = 1021\G

# Query 3: 62.63 QPS, 0.43x concurrency, ID 0x42EF7D7D98FBCC9723BF896EBFC51D24 at byte 82702993
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Time range: 2023-11-25T01:34:43 to 2023-11-25T01:36:33
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          1    6889
# Exec time      9     47s   117us    66ms     7ms    17ms     6ms     5ms
# Lock time      3    18ms       0     1ms     2us     1us    24us     1us
# Rows sent      0   1.27k       0       1    0.19    0.99    0.39       0
# Rows examine   6   9.08M       4   1.43k   1.35k   1.39k   58.40   1.33k
# Query size     2 953.21k     129     209  141.69  158.58   11.86  136.99
# String:
# Databases    isudns
# Hosts        localhost
# Users        isudns
# Query_time distribution
#   1us
#  10us
# 100us  #
#   1ms  ################################################################
#  10ms  #######################
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS FROM `isudns` LIKE 'records'\G
#    SHOW CREATE TABLE `isudns`.`records`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='fnuvqmf4gy0.u.isucon.dev' and domain_id=2\G

# Query 4: 1.17k QPS, 0.39x concurrency, ID 0xDA556F9115773A1A99AA0165670CE848 at byte 43143224
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.01
# Time range: 2023-11-25T01:34:43 to 2023-11-25T01:36:33
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count         29  128484
# Exec time      8     43s    25us   375ms   333us     1ms     2ms    73us
# Lock time      0     4us       0     4us       0       0       0       0
# Rows sent      0       0       0       0       0       0       0       0
# Rows examine   0       0       0       0       0       0       0       0
# Query size     8   3.68M      30      30      30      30       0      30
# String:
# Databases    isupipe (127361/99%), isudns (1123/0%)
# Hosts        localhost
# Users        isucon (127361/99%), isudns (1123/0%)
# Query_time distribution
#   1us
#  10us  ################################################################
# 100us  #####################################
#   1ms  ########
#  10ms  #
# 100ms  #
#    1s
#  10s+
administrator command: Prepare\G

# Query 5: 32.22 QPS, 0.31x concurrency, ID 0xF1B8EF06D6CA63B24BFF433E06CCEB22 at byte 96719250
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.02
# Time range: 2023-11-25T01:34:59 to 2023-11-25T01:36:33
# Attribute    pct   total     min     max     avg     95%  stddev  median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count          0    3029
# Exec time      5     30s     2ms    77ms    10ms    38ms    13ms     2ms
# Lock time      0     5ms       0   204us     1us     1us     4us     1us
# Rows sent      1   2.96k       1       1       1       1       0       1
# Rows examine   4   6.02M   1.96k   2.32k   2.03k   2.16k  123.67   1.96k
# Query size     1 487.44k     163     166  164.79  158.58       0  158.58
# String:
# Databases    isupipe
# Hosts        localhost
# Users        isucon
# Query_time distribution
#   1us
#  10us
# 100us
#   1ms  ################################################################
#  10ms  ##########################
# 100ms
#    1s
#  10s+
# Tables
#    SHOW TABLE STATUS FROM `isupipe` LIKE 'users'\G
#    SHOW CREATE TABLE `isupipe`.`users`\G
#    SHOW TABLE STATUS FROM `isupipe` LIKE 'livestreams'\G
#    SHOW CREATE TABLE `isupipe`.`livestreams`\G
#    SHOW TABLE STATUS FROM `isupipe` LIKE 'livecomments'\G
#    SHOW CREATE TABLE `isupipe`.`livecomments`\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT IFNULL(SUM(l2.tip), 0) FROM users u
        INNER JOIN livestreams l ON l.user_id = u.id    
        INNER JOIN livecomments l2 ON l2.livestream_id = l.id
        WHERE u.id = 249\G