3
8.72 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
479357
529077
564806
491115
543829
560981
449292
453603
499750
506719
509743
521420
458307
569554
561636
569432
591367
448472
479580
519817
514055
526237
483510
503983
529469
463004
485386
522250
521016
495988
503056
519785
500210
569442
558944
508786
513412
524344
565093
543342
520861
679233
634599
556682
696721
714144
546439
662128
669995
808014
719773
808447
743531
553962
554774
728966
775487
462851
477395
462564
480905
572026
502328
]
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 (479357 , 529077 , 564806 , 491115 , 543829 , 560981 , 449292 , 453603 , 499750 , 506719 , 509743 , 521420 , 458307 , 569554 , 561636 , 569432 , 591367 , 448472 , 479580 , 519817 , 514055 , 526237 , 483510 , 503983 , 529469 , 463004 , 485386 , 522250 , 521016 , 495988 , 503056 , 519785 , 500210 , 569442 , 558944 , 508786 , 513412 , 524344 , 565093 , 543342 , 520861 , 679233 , 634599 , 556682 , 696721 , 714144 , 546439 , 662128 , 669995 , 808014 , 719773 , 808447 , 743531 , 553962 , 554774 , 728966 , 775487 , 462851 , 477395 , 462564 , 480905 , 572026 , 502328 );
Copy
4
2.24 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
448472
449292
453603
458307
462564
462851
463004
477395
479357
479580
480905
483510
485386
491115
495988
499750
500210
502328
503056
503983
506719
508786
509743
513412
514055
519785
519817
520861
521016
521420
522250
524344
526237
529077
529469
543342
543829
546439
553962
554774
556682
558944
560981
561636
564806
565093
569432
569442
569554
572026
591367
634599
662128
669995
679233
696721
714144
719773
728966
743531
775487
808014
808447
]
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 (448472 , 449292 , 453603 , 458307 , 462564 , 462851 , 463004 , 477395 , 479357 , 479580 , 480905 , 483510 , 485386 , 491115 , 495988 , 499750 , 500210 , 502328 , 503056 , 503983 , 506719 , 508786 , 509743 , 513412 , 514055 , 519785 , 519817 , 520861 , 521016 , 521420 , 522250 , 524344 , 526237 , 529077 , 529469 , 543342 , 543829 , 546439 , 553962 , 554774 , 556682 , 558944 , 560981 , 561636 , 564806 , 565093 , 569432 , 569442 , 569554 , 572026 , 591367 , 634599 , 662128 , 669995 , 679233 , 696721 , 714144 , 719773 , 728966 , 743531 , 775487 , 808014 , 808447 );
Copy
5
79.70 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
448472
449292
453603
458307
462564
462851
463004
477395
479357
479580
480905
483510
485386
491115
495988
499750
500210
502328
503056
503983
506719
508786
509743
513412
514055
519785
519817
520861
521016
521420
522250
524344
526237
529077
529469
543342
543829
546439
553962
554774
556682
558944
560981
561636
564806
565093
569432
569442
569554
572026
591367
634599
662128
669995
679233
696721
714144
719773
728966
743531
775487
808014
808447
]
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 (448472 , 449292 , 453603 , 458307 , 462564 , 462851 , 463004 , 477395 , 479357 , 479580 , 480905 , 483510 , 485386 , 491115 , 495988 , 499750 , 500210 , 502328 , 503056 , 503983 , 506719 , 508786 , 509743 , 513412 , 514055 , 519785 , 519817 , 520861 , 521016 , 521420 , 522250 , 524344 , 526237 , 529077 , 529469 , 543342 , 543829 , 546439 , 553962 , 554774 , 556682 , 558944 , 560981 , 561636 , 564806 , 565093 , 569432 , 569442 , 569554 , 572026 , 591367 , 634599 , 662128 , 669995 , 679233 , 696721 , 714144 , 719773 , 728966 , 743531 , 775487 , 808014 , 808447 );
Copy