4
11.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
544955
671222
500852
402515
614922
746864
766566
777379
207824
509066
547685
759120
765304
792600
457671
520521
716278
725575
798373
382543
803019
746890
601948
717863
522725
651559
666367
728291
771591
603722
451671
445667
529482
558838
575540
724896
727728
453707
390207
438764
486084
425993
435835
410855
464882
584575
560358
620591
781780
748235
470915
472296
525882
512278
519476
452451
452052
474479
503035
425160
516941
443567
537676
610087
415306
404746
416913
425804
439746
516972
548755
514382
530000
561178
586118
]
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 (544955 , 671222 , 500852 , 402515 , 614922 , 746864 , 766566 , 777379 , 207824 , 509066 , 547685 , 759120 , 765304 , 792600 , 457671 , 520521 , 716278 , 725575 , 798373 , 382543 , 803019 , 746890 , 601948 , 717863 , 522725 , 651559 , 666367 , 728291 , 771591 , 603722 , 451671 , 445667 , 529482 , 558838 , 575540 , 724896 , 727728 , 453707 , 390207 , 438764 , 486084 , 425993 , 435835 , 410855 , 464882 , 584575 , 560358 , 620591 , 781780 , 748235 , 470915 , 472296 , 525882 , 512278 , 519476 , 452451 , 452052 , 474479 , 503035 , 425160 , 516941 , 443567 , 537676 , 610087 , 415306 , 404746 , 416913 , 425804 , 439746 , 516972 , 548755 , 514382 , 530000 , 561178 , 586118 );
Copy
5
2.74 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
207824
382543
390207
402515
404746
410855
415306
416913
425160
425804
425993
435835
438764
439746
443567
445667
451671
452052
452451
453707
457671
464882
470915
472296
474479
486084
500852
503035
509066
512278
514382
516941
516972
519476
520521
522725
525882
529482
530000
537676
544955
547685
548755
558838
560358
561178
575540
584575
586118
601948
603722
610087
614922
620591
651559
666367
671222
716278
717863
724896
725575
727728
728291
746864
746890
748235
759120
765304
766566
771591
777379
781780
792600
798373
803019
]
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 (207824 , 382543 , 390207 , 402515 , 404746 , 410855 , 415306 , 416913 , 425160 , 425804 , 425993 , 435835 , 438764 , 439746 , 443567 , 445667 , 451671 , 452052 , 452451 , 453707 , 457671 , 464882 , 470915 , 472296 , 474479 , 486084 , 500852 , 503035 , 509066 , 512278 , 514382 , 516941 , 516972 , 519476 , 520521 , 522725 , 525882 , 529482 , 530000 , 537676 , 544955 , 547685 , 548755 , 558838 , 560358 , 561178 , 575540 , 584575 , 586118 , 601948 , 603722 , 610087 , 614922 , 620591 , 651559 , 666367 , 671222 , 716278 , 717863 , 724896 , 725575 , 727728 , 728291 , 746864 , 746890 , 748235 , 759120 , 765304 , 766566 , 771591 , 777379 , 781780 , 792600 , 798373 , 803019 );
Copy
6
85.20 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
207824
382543
390207
402515
404746
410855
415306
416913
425160
425804
425993
435835
438764
439746
443567
445667
451671
452052
452451
453707
457671
464882
470915
472296
474479
486084
500852
503035
509066
512278
514382
516941
516972
519476
520521
522725
525882
529482
530000
537676
544955
547685
548755
558838
560358
561178
575540
584575
586118
601948
603722
610087
614922
620591
651559
666367
671222
716278
717863
724896
725575
727728
728291
746864
746890
748235
759120
765304
766566
771591
777379
781780
792600
798373
803019
]
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 (207824 , 382543 , 390207 , 402515 , 404746 , 410855 , 415306 , 416913 , 425160 , 425804 , 425993 , 435835 , 438764 , 439746 , 443567 , 445667 , 451671 , 452052 , 452451 , 453707 , 457671 , 464882 , 470915 , 472296 , 474479 , 486084 , 500852 , 503035 , 509066 , 512278 , 514382 , 516941 , 516972 , 519476 , 520521 , 522725 , 525882 , 529482 , 530000 , 537676 , 544955 , 547685 , 548755 , 558838 , 560358 , 561178 , 575540 , 584575 , 586118 , 601948 , 603722 , 610087 , 614922 , 620591 , 651559 , 666367 , 671222 , 716278 , 717863 , 724896 , 725575 , 727728 , 728291 , 746864 , 746890 , 748235 , 759120 , 765304 , 766566 , 771591 , 777379 , 781780 , 792600 , 798373 , 803019 );
Copy