3
11.59 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
783836
813382
801026
430311
762646
497430
423484
396983
423491
578460
674477
707844
588226
634505
453935
459202
502287
774709
479509
435468
423495
423482
422074
805852
419487
482831
781400
463926
423458
418867
818906
821859
595418
494374
458438
479863
622302
686942
594644
539879
430650
520191
821053
423503
571839
473537
551944
419777
490718
417427
457553
523913
604102
512491
446203
447917
428157
430633
447182
592770
480270
574619
581897
561082
560511
]
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 (783836 , 813382 , 801026 , 430311 , 762646 , 497430 , 423484 , 396983 , 423491 , 578460 , 674477 , 707844 , 588226 , 634505 , 453935 , 459202 , 502287 , 774709 , 479509 , 435468 , 423495 , 423482 , 422074 , 805852 , 419487 , 482831 , 781400 , 463926 , 423458 , 418867 , 818906 , 821859 , 595418 , 494374 , 458438 , 479863 , 622302 , 686942 , 594644 , 539879 , 430650 , 520191 , 821053 , 423503 , 571839 , 473537 , 551944 , 419777 , 490718 , 417427 , 457553 , 523913 , 604102 , 512491 , 446203 , 447917 , 428157 , 430633 , 447182 , 592770 , 480270 , 574619 , 581897 , 561082 , 560511 );
Copy
4
2.91 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
396983
417427
418867
419487
419777
422074
423458
423482
423484
423491
423495
423503
428157
430311
430633
430650
435468
446203
447182
447917
453935
457553
458438
459202
463926
473537
479509
479863
480270
482831
490718
494374
497430
502287
512491
520191
523913
539879
551944
560511
561082
571839
574619
578460
581897
588226
592770
594644
595418
604102
622302
634505
674477
686942
707844
762646
774709
781400
783836
801026
805852
813382
818906
821053
821859
]
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 (396983 , 417427 , 418867 , 419487 , 419777 , 422074 , 423458 , 423482 , 423484 , 423491 , 423495 , 423503 , 428157 , 430311 , 430633 , 430650 , 435468 , 446203 , 447182 , 447917 , 453935 , 457553 , 458438 , 459202 , 463926 , 473537 , 479509 , 479863 , 480270 , 482831 , 490718 , 494374 , 497430 , 502287 , 512491 , 520191 , 523913 , 539879 , 551944 , 560511 , 561082 , 571839 , 574619 , 578460 , 581897 , 588226 , 592770 , 594644 , 595418 , 604102 , 622302 , 634505 , 674477 , 686942 , 707844 , 762646 , 774709 , 781400 , 783836 , 801026 , 805852 , 813382 , 818906 , 821053 , 821859 );
Copy
5
80.23 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
396983
417427
418867
419487
419777
422074
423458
423482
423484
423491
423495
423503
428157
430311
430633
430650
435468
446203
447182
447917
453935
457553
458438
459202
463926
473537
479509
479863
480270
482831
490718
494374
497430
502287
512491
520191
523913
539879
551944
560511
561082
571839
574619
578460
581897
588226
592770
594644
595418
604102
622302
634505
674477
686942
707844
762646
774709
781400
783836
801026
805852
813382
818906
821053
821859
]
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 (396983 , 417427 , 418867 , 419487 , 419777 , 422074 , 423458 , 423482 , 423484 , 423491 , 423495 , 423503 , 428157 , 430311 , 430633 , 430650 , 435468 , 446203 , 447182 , 447917 , 453935 , 457553 , 458438 , 459202 , 463926 , 473537 , 479509 , 479863 , 480270 , 482831 , 490718 , 494374 , 497430 , 502287 , 512491 , 520191 , 523913 , 539879 , 551944 , 560511 , 561082 , 571839 , 574619 , 578460 , 581897 , 588226 , 592770 , 594644 , 595418 , 604102 , 622302 , 634505 , 674477 , 686942 , 707844 , 762646 , 774709 , 781400 , 783836 , 801026 , 805852 , 813382 , 818906 , 821053 , 821859 );
Copy