3
12.16 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
754657
754938
754802
754835
675884
778192
675322
722924
754773
754944
754822
754706
754679
712657
754837
605807
553879
553507
754912
553583
553807
553781
553889
684686
657878
553547
553604
591841
591865
591911
484464
553823
553472
553586
553502
563574
591658
591700
484148
546355
563570
553541
738653
553563
591921
591748
463020
484533
528281
553517
549571
508392
484075
553575
555856
580599
525977
553761
527931
484125
563576
553720
553926
511370
553717
]
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 (754657 , 754938 , 754802 , 754835 , 675884 , 778192 , 675322 , 722924 , 754773 , 754944 , 754822 , 754706 , 754679 , 712657 , 754837 , 605807 , 553879 , 553507 , 754912 , 553583 , 553807 , 553781 , 553889 , 684686 , 657878 , 553547 , 553604 , 591841 , 591865 , 591911 , 484464 , 553823 , 553472 , 553586 , 553502 , 563574 , 591658 , 591700 , 484148 , 546355 , 563570 , 553541 , 738653 , 553563 , 591921 , 591748 , 463020 , 484533 , 528281 , 553517 , 549571 , 508392 , 484075 , 553575 , 555856 , 580599 , 525977 , 553761 , 527931 , 484125 , 563576 , 553720 , 553926 , 511370 , 553717 );
Copy
4
2.29 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
463020
484075
484125
484148
484464
484533
508392
511370
525977
527931
528281
546355
549571
553472
553502
553507
553517
553541
553547
553563
553575
553583
553586
553604
553717
553720
553761
553781
553807
553823
553879
553889
553926
555856
563570
563574
563576
580599
591658
591700
591748
591841
591865
591911
591921
605807
657878
675322
675884
684686
712657
722924
738653
754657
754679
754706
754773
754802
754822
754835
754837
754912
754938
754944
778192
]
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 (463020 , 484075 , 484125 , 484148 , 484464 , 484533 , 508392 , 511370 , 525977 , 527931 , 528281 , 546355 , 549571 , 553472 , 553502 , 553507 , 553517 , 553541 , 553547 , 553563 , 553575 , 553583 , 553586 , 553604 , 553717 , 553720 , 553761 , 553781 , 553807 , 553823 , 553879 , 553889 , 553926 , 555856 , 563570 , 563574 , 563576 , 580599 , 591658 , 591700 , 591748 , 591841 , 591865 , 591911 , 591921 , 605807 , 657878 , 675322 , 675884 , 684686 , 712657 , 722924 , 738653 , 754657 , 754679 , 754706 , 754773 , 754802 , 754822 , 754835 , 754837 , 754912 , 754938 , 754944 , 778192 );
Copy
5
116.17 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
463020
484075
484125
484148
484464
484533
508392
511370
525977
527931
528281
546355
549571
553472
553502
553507
553517
553541
553547
553563
553575
553583
553586
553604
553717
553720
553761
553781
553807
553823
553879
553889
553926
555856
563570
563574
563576
580599
591658
591700
591748
591841
591865
591911
591921
605807
657878
675322
675884
684686
712657
722924
738653
754657
754679
754706
754773
754802
754822
754835
754837
754912
754938
754944
778192
]
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 (463020 , 484075 , 484125 , 484148 , 484464 , 484533 , 508392 , 511370 , 525977 , 527931 , 528281 , 546355 , 549571 , 553472 , 553502 , 553507 , 553517 , 553541 , 553547 , 553563 , 553575 , 553583 , 553586 , 553604 , 553717 , 553720 , 553761 , 553781 , 553807 , 553823 , 553879 , 553889 , 553926 , 555856 , 563570 , 563574 , 563576 , 580599 , 591658 , 591700 , 591748 , 591841 , 591865 , 591911 , 591921 , 605807 , 657878 , 675322 , 675884 , 684686 , 712657 , 722924 , 738653 , 754657 , 754679 , 754706 , 754773 , 754802 , 754822 , 754835 , 754837 , 754912 , 754938 , 754944 , 778192 );
Copy