3
58.58 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
568317
437783
469167
526882
436477
723629
565624
691414
675846
689014
597079
606694
605487
776503
784142
508876
500390
519723
546724
626399
437587
440820
515361
550718
525702
751903
453501
462076
513694
443357
542743
607027
522328
504780
608230
564644
621224
504897
521172
584162
461891
578724
574901
571998
810401
441018
509056
510083
608336
502538
522759
513506
518920
555533
458200
439649
504189
590221
624776
513566
522215
517095
557928
619201
428409
491652
584236
599483
620124
516549
616956
615826
605971
]
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 (568317 , 437783 , 469167 , 526882 , 436477 , 723629 , 565624 , 691414 , 675846 , 689014 , 597079 , 606694 , 605487 , 776503 , 784142 , 508876 , 500390 , 519723 , 546724 , 626399 , 437587 , 440820 , 515361 , 550718 , 525702 , 751903 , 453501 , 462076 , 513694 , 443357 , 542743 , 607027 , 522328 , 504780 , 608230 , 564644 , 621224 , 504897 , 521172 , 584162 , 461891 , 578724 , 574901 , 571998 , 810401 , 441018 , 509056 , 510083 , 608336 , 502538 , 522759 , 513506 , 518920 , 555533 , 458200 , 439649 , 504189 , 590221 , 624776 , 513566 , 522215 , 517095 , 557928 , 619201 , 428409 , 491652 , 584236 , 599483 , 620124 , 516549 , 616956 , 615826 , 605971 );
Copy
4
2.35 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
428409
436477
437587
437783
439649
440820
441018
443357
453501
458200
461891
462076
469167
491652
500390
502538
504189
504780
504897
508876
509056
510083
513506
513566
513694
515361
516549
517095
518920
519723
521172
522215
522328
522759
525702
526882
542743
546724
550718
555533
557928
564644
565624
568317
571998
574901
578724
584162
584236
590221
597079
599483
605487
605971
606694
607027
608230
608336
615826
616956
619201
620124
621224
624776
626399
675846
689014
691414
723629
751903
776503
784142
810401
]
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 (428409 , 436477 , 437587 , 437783 , 439649 , 440820 , 441018 , 443357 , 453501 , 458200 , 461891 , 462076 , 469167 , 491652 , 500390 , 502538 , 504189 , 504780 , 504897 , 508876 , 509056 , 510083 , 513506 , 513566 , 513694 , 515361 , 516549 , 517095 , 518920 , 519723 , 521172 , 522215 , 522328 , 522759 , 525702 , 526882 , 542743 , 546724 , 550718 , 555533 , 557928 , 564644 , 565624 , 568317 , 571998 , 574901 , 578724 , 584162 , 584236 , 590221 , 597079 , 599483 , 605487 , 605971 , 606694 , 607027 , 608230 , 608336 , 615826 , 616956 , 619201 , 620124 , 621224 , 624776 , 626399 , 675846 , 689014 , 691414 , 723629 , 751903 , 776503 , 784142 , 810401 );
Copy
5
110.88 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
428409
436477
437587
437783
439649
440820
441018
443357
453501
458200
461891
462076
469167
491652
500390
502538
504189
504780
504897
508876
509056
510083
513506
513566
513694
515361
516549
517095
518920
519723
521172
522215
522328
522759
525702
526882
542743
546724
550718
555533
557928
564644
565624
568317
571998
574901
578724
584162
584236
590221
597079
599483
605487
605971
606694
607027
608230
608336
615826
616956
619201
620124
621224
624776
626399
675846
689014
691414
723629
751903
776503
784142
810401
]
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 (428409 , 436477 , 437587 , 437783 , 439649 , 440820 , 441018 , 443357 , 453501 , 458200 , 461891 , 462076 , 469167 , 491652 , 500390 , 502538 , 504189 , 504780 , 504897 , 508876 , 509056 , 510083 , 513506 , 513566 , 513694 , 515361 , 516549 , 517095 , 518920 , 519723 , 521172 , 522215 , 522328 , 522759 , 525702 , 526882 , 542743 , 546724 , 550718 , 555533 , 557928 , 564644 , 565624 , 568317 , 571998 , 574901 , 578724 , 584162 , 584236 , 590221 , 597079 , 599483 , 605487 , 605971 , 606694 , 607027 , 608230 , 608336 , 615826 , 616956 , 619201 , 620124 , 621224 , 624776 , 626399 , 675846 , 689014 , 691414 , 723629 , 751903 , 776503 , 784142 , 810401 );
Copy