3
10.08 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
619780
729612
662904
612402
545512
815358
381837
803804
713083
8704
820705
808172
736436
3699
827701
598628
785479
389019
413709
650338
781946
407509
161318
529860
708918
640830
809239
775800
801083
765610
383400
820353
531818
702152
808011
428874
497244
386627
814885
464621
480732
505518
474305
775372
790784
807775
716271
449885
463966
498490
493466
468199
468766
767948
492618
474153
503754
442997
512479
569194
607694
404787
405531
412367
673589
613819
537789
]
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 (619780 , 729612 , 662904 , 612402 , 545512 , 815358 , 381837 , 803804 , 713083 , 8704 , 820705 , 808172 , 736436 , 3699 , 827701 , 598628 , 785479 , 389019 , 413709 , 650338 , 781946 , 407509 , 161318 , 529860 , 708918 , 640830 , 809239 , 775800 , 801083 , 765610 , 383400 , 820353 , 531818 , 702152 , 808011 , 428874 , 497244 , 386627 , 814885 , 464621 , 480732 , 505518 , 474305 , 775372 , 790784 , 807775 , 716271 , 449885 , 463966 , 498490 , 493466 , 468199 , 468766 , 767948 , 492618 , 474153 , 503754 , 442997 , 512479 , 569194 , 607694 , 404787 , 405531 , 412367 , 673589 , 613819 , 537789 );
Copy
4
2.99 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
3699
8704
161318
381837
383400
386627
389019
404787
405531
407509
412367
413709
428874
442997
449885
463966
464621
468199
468766
474153
474305
480732
492618
493466
497244
498490
503754
505518
512479
529860
531818
537789
545512
569194
598628
607694
612402
613819
619780
640830
650338
662904
673589
702152
708918
713083
716271
729612
736436
765610
767948
775372
775800
781946
785479
790784
801083
803804
807775
808011
808172
809239
814885
815358
820353
820705
827701
]
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 (3699 , 8704 , 161318 , 381837 , 383400 , 386627 , 389019 , 404787 , 405531 , 407509 , 412367 , 413709 , 428874 , 442997 , 449885 , 463966 , 464621 , 468199 , 468766 , 474153 , 474305 , 480732 , 492618 , 493466 , 497244 , 498490 , 503754 , 505518 , 512479 , 529860 , 531818 , 537789 , 545512 , 569194 , 598628 , 607694 , 612402 , 613819 , 619780 , 640830 , 650338 , 662904 , 673589 , 702152 , 708918 , 713083 , 716271 , 729612 , 736436 , 765610 , 767948 , 775372 , 775800 , 781946 , 785479 , 790784 , 801083 , 803804 , 807775 , 808011 , 808172 , 809239 , 814885 , 815358 , 820353 , 820705 , 827701 );
Copy
5
80.73 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
3699
8704
161318
381837
383400
386627
389019
404787
405531
407509
412367
413709
428874
442997
449885
463966
464621
468199
468766
474153
474305
480732
492618
493466
497244
498490
503754
505518
512479
529860
531818
537789
545512
569194
598628
607694
612402
613819
619780
640830
650338
662904
673589
702152
708918
713083
716271
729612
736436
765610
767948
775372
775800
781946
785479
790784
801083
803804
807775
808011
808172
809239
814885
815358
820353
820705
827701
]
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 (3699 , 8704 , 161318 , 381837 , 383400 , 386627 , 389019 , 404787 , 405531 , 407509 , 412367 , 413709 , 428874 , 442997 , 449885 , 463966 , 464621 , 468199 , 468766 , 474153 , 474305 , 480732 , 492618 , 493466 , 497244 , 498490 , 503754 , 505518 , 512479 , 529860 , 531818 , 537789 , 545512 , 569194 , 598628 , 607694 , 612402 , 613819 , 619780 , 640830 , 650338 , 662904 , 673589 , 702152 , 708918 , 713083 , 716271 , 729612 , 736436 , 765610 , 767948 , 775372 , 775800 , 781946 , 785479 , 790784 , 801083 , 803804 , 807775 , 808011 , 808172 , 809239 , 814885 , 815358 , 820353 , 820705 , 827701 );
Copy