94.39 ms (72.93%)
1
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
130289
184359
385381
389171
391941
419861
420769
421058
423940
431105
443823
458432
462788
467635
470679
472125
474680
506552
514722
514733
515225
524551
530019
538815
542965
545387
545397
545399
545405
545417
545427
545444
548455
550949
575661
581035
590188
603243
606909
612422
622189
630552
659072
662604
673357
673363
673365
673366
673369
699744
716564
729881
760237
762268
775889
775960
775967
778307
784908
787387
798389
801956
803906
803910
805594
817348
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (130289 , 184359 , 385381 , 389171 , 391941 , 419861 , 420769 , 421058 , 423940 , 431105 , 443823 , 458432 , 462788 , 467635 , 470679 , 472125 , 474680 , 506552 , 514722 , 514733 , 515225 , 524551 , 530019 , 538815 , 542965 , 545387 , 545397 , 545399 , 545405 , 545417 , 545427 , 545444 , 548455 , 550949 , 575661 , 581035 , 590188 , 603243 , 606909 , 612422 , 622189 , 630552 , 659072 , 662604 , 673357 , 673363 , 673365 , 673366 , 673369 , 699744 , 716564 , 729881 , 760237 , 762268 , 775889 , 775960 , 775967 , 778307 , 784908 , 787387 , 798389 , 801956 , 803906 , 803910 , 805594 , 817348 );
Copy
9.99 ms (7.72%)
1
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
545397
548455
659072
184359
817348
762268
803906
803910
545417
801956
787387
699744
385381
673366
805594
775889
716564
673363
673369
798389
673365
550949
673357
470679
784908
545405
130289
506552
622189
581035
662604
775960
775967
524551
462788
590188
729881
514722
530019
603243
542965
545387
458432
606909
467635
515225
545399
421058
514733
423940
760237
391941
389171
419861
431105
612422
443823
472125
474680
538815
575661
420769
778307
545427
545444
630552
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (545397 , 548455 , 659072 , 184359 , 817348 , 762268 , 803906 , 803910 , 545417 , 801956 , 787387 , 699744 , 385381 , 673366 , 805594 , 775889 , 716564 , 673363 , 673369 , 798389 , 673365 , 550949 , 673357 , 470679 , 784908 , 545405 , 130289 , 506552 , 622189 , 581035 , 662604 , 775960 , 775967 , 524551 , 462788 , 590188 , 729881 , 514722 , 530019 , 603243 , 542965 , 545387 , 458432 , 606909 , 467635 , 515225 , 545399 , 421058 , 514733 , 423940 , 760237 , 391941 , 389171 , 419861 , 431105 , 612422 , 443823 , 472125 , 474680 , 538815 , 575661 , 420769 , 778307 , 545427 , 545444 , 630552 );
Copy
2.08 ms (1.60%)
1
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
130289
184359
385381
389171
391941
419861
420769
421058
423940
431105
443823
458432
462788
467635
470679
472125
474680
506552
514722
514733
515225
524551
530019
538815
542965
545387
545397
545399
545405
545417
545427
545444
548455
550949
575661
581035
590188
603243
606909
612422
622189
630552
659072
662604
673357
673363
673365
673366
673369
699744
716564
729881
760237
762268
775889
775960
775967
778307
784908
787387
798389
801956
803906
803910
805594
817348
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (130289 , 184359 , 385381 , 389171 , 391941 , 419861 , 420769 , 421058 , 423940 , 431105 , 443823 , 458432 , 462788 , 467635 , 470679 , 472125 , 474680 , 506552 , 514722 , 514733 , 515225 , 524551 , 530019 , 538815 , 542965 , 545387 , 545397 , 545399 , 545405 , 545417 , 545427 , 545444 , 548455 , 550949 , 575661 , 581035 , 590188 , 603243 , 606909 , 612422 , 622189 , 630552 , 659072 , 662604 , 673357 , 673363 , 673365 , 673366 , 673369 , 699744 , 716564 , 729881 , 760237 , 762268 , 775889 , 775960 , 775967 , 778307 , 784908 , 787387 , 798389 , 801956 , 803906 , 803910 , 805594 , 817348 );
Copy