3
9.93 ms
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
507637
423595
399250
810962
580236
399310
534389
631603
778230
671072
804496
745119
785125
738541
792064
720177
784309
742140
503448
452922
824884
530958
645604
669279
721884
598543
629443
767000
608091
757921
809661
465918
678732
652380
679648
598550
761632
767611
803446
814467
826182
814459
813808
560501
579381
720095
603272
632311
613630
752650
708655
792645
387480
414132
442400
473838
545188
444180
489409
476861
523364
523422
544109
502714
486250
]
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 (507637 , 423595 , 399250 , 810962 , 580236 , 399310 , 534389 , 631603 , 778230 , 671072 , 804496 , 745119 , 785125 , 738541 , 792064 , 720177 , 784309 , 742140 , 503448 , 452922 , 824884 , 530958 , 645604 , 669279 , 721884 , 598543 , 629443 , 767000 , 608091 , 757921 , 809661 , 465918 , 678732 , 652380 , 679648 , 598550 , 761632 , 767611 , 803446 , 814467 , 826182 , 814459 , 813808 , 560501 , 579381 , 720095 , 603272 , 632311 , 613630 , 752650 , 708655 , 792645 , 387480 , 414132 , 442400 , 473838 , 545188 , 444180 , 489409 , 476861 , 523364 , 523422 , 544109 , 502714 , 486250 );
Copy
4
2.84 ms
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
387480
399250
399310
414132
423595
442400
444180
452922
465918
473838
476861
486250
489409
502714
503448
507637
523364
523422
530958
534389
544109
545188
560501
579381
580236
598543
598550
603272
608091
613630
629443
631603
632311
645604
652380
669279
671072
678732
679648
708655
720095
720177
721884
738541
742140
745119
752650
757921
761632
767000
767611
778230
784309
785125
792064
792645
803446
804496
809661
810962
813808
814459
814467
824884
826182
]
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 (387480 , 399250 , 399310 , 414132 , 423595 , 442400 , 444180 , 452922 , 465918 , 473838 , 476861 , 486250 , 489409 , 502714 , 503448 , 507637 , 523364 , 523422 , 530958 , 534389 , 544109 , 545188 , 560501 , 579381 , 580236 , 598543 , 598550 , 603272 , 608091 , 613630 , 629443 , 631603 , 632311 , 645604 , 652380 , 669279 , 671072 , 678732 , 679648 , 708655 , 720095 , 720177 , 721884 , 738541 , 742140 , 745119 , 752650 , 757921 , 761632 , 767000 , 767611 , 778230 , 784309 , 785125 , 792064 , 792645 , 803446 , 804496 , 809661 , 810962 , 813808 , 814459 , 814467 , 824884 , 826182 );
Copy
5
77.72 ms
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
387480
399250
399310
414132
423595
442400
444180
452922
465918
473838
476861
486250
489409
502714
503448
507637
523364
523422
530958
534389
544109
545188
560501
579381
580236
598543
598550
603272
608091
613630
629443
631603
632311
645604
652380
669279
671072
678732
679648
708655
720095
720177
721884
738541
742140
745119
752650
757921
761632
767000
767611
778230
784309
785125
792064
792645
803446
804496
809661
810962
813808
814459
814467
824884
826182
]
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 (387480 , 399250 , 399310 , 414132 , 423595 , 442400 , 444180 , 452922 , 465918 , 473838 , 476861 , 486250 , 489409 , 502714 , 503448 , 507637 , 523364 , 523422 , 530958 , 534389 , 544109 , 545188 , 560501 , 579381 , 580236 , 598543 , 598550 , 603272 , 608091 , 613630 , 629443 , 631603 , 632311 , 645604 , 652380 , 669279 , 671072 , 678732 , 679648 , 708655 , 720095 , 720177 , 721884 , 738541 , 742140 , 745119 , 752650 , 757921 , 761632 , 767000 , 767611 , 778230 , 784309 , 785125 , 792064 , 792645 , 803446 , 804496 , 809661 , 810962 , 813808 , 814459 , 814467 , 824884 , 826182 );
Copy