3
11.68 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
531047
696165
599605
667024
810182
535728
696189
758681
736687
800341
519511
722714
707786
716503
774244
395184
722404
606500
536125
715397
779093
713361
438646
500616
562732
575812
576054
619878
711590
793567
415507
420803
403716
460447
525092
516230
517676
564711
667810
599734
621745
727465
471326
471328
460093
511216
512411
523937
590886
524100
497793
487975
560002
601170
615645
443311
451133
470067
504848
522905
548848
558958
575488
554060
523454
518171
496977
521617
516938
542971
571806
524490
490091
576113
]
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 (531047 , 696165 , 599605 , 667024 , 810182 , 535728 , 696189 , 758681 , 736687 , 800341 , 519511 , 722714 , 707786 , 716503 , 774244 , 395184 , 722404 , 606500 , 536125 , 715397 , 779093 , 713361 , 438646 , 500616 , 562732 , 575812 , 576054 , 619878 , 711590 , 793567 , 415507 , 420803 , 403716 , 460447 , 525092 , 516230 , 517676 , 564711 , 667810 , 599734 , 621745 , 727465 , 471326 , 471328 , 460093 , 511216 , 512411 , 523937 , 590886 , 524100 , 497793 , 487975 , 560002 , 601170 , 615645 , 443311 , 451133 , 470067 , 504848 , 522905 , 548848 , 558958 , 575488 , 554060 , 523454 , 518171 , 496977 , 521617 , 516938 , 542971 , 571806 , 524490 , 490091 , 576113 );
Copy
4
2.54 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
395184
403716
415507
420803
438646
443311
451133
460093
460447
470067
471326
471328
487975
490091
496977
497793
500616
504848
511216
512411
516230
516938
517676
518171
519511
521617
522905
523454
523937
524100
524490
525092
531047
535728
536125
542971
548848
554060
558958
560002
562732
564711
571806
575488
575812
576054
576113
590886
599605
599734
601170
606500
615645
619878
621745
667024
667810
696165
696189
707786
711590
713361
715397
716503
722404
722714
727465
736687
758681
774244
779093
793567
800341
810182
]
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 (395184 , 403716 , 415507 , 420803 , 438646 , 443311 , 451133 , 460093 , 460447 , 470067 , 471326 , 471328 , 487975 , 490091 , 496977 , 497793 , 500616 , 504848 , 511216 , 512411 , 516230 , 516938 , 517676 , 518171 , 519511 , 521617 , 522905 , 523454 , 523937 , 524100 , 524490 , 525092 , 531047 , 535728 , 536125 , 542971 , 548848 , 554060 , 558958 , 560002 , 562732 , 564711 , 571806 , 575488 , 575812 , 576054 , 576113 , 590886 , 599605 , 599734 , 601170 , 606500 , 615645 , 619878 , 621745 , 667024 , 667810 , 696165 , 696189 , 707786 , 711590 , 713361 , 715397 , 716503 , 722404 , 722714 , 727465 , 736687 , 758681 , 774244 , 779093 , 793567 , 800341 , 810182 );
Copy
5
101.54 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
395184
403716
415507
420803
438646
443311
451133
460093
460447
470067
471326
471328
487975
490091
496977
497793
500616
504848
511216
512411
516230
516938
517676
518171
519511
521617
522905
523454
523937
524100
524490
525092
531047
535728
536125
542971
548848
554060
558958
560002
562732
564711
571806
575488
575812
576054
576113
590886
599605
599734
601170
606500
615645
619878
621745
667024
667810
696165
696189
707786
711590
713361
715397
716503
722404
722714
727465
736687
758681
774244
779093
793567
800341
810182
]
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 (395184 , 403716 , 415507 , 420803 , 438646 , 443311 , 451133 , 460093 , 460447 , 470067 , 471326 , 471328 , 487975 , 490091 , 496977 , 497793 , 500616 , 504848 , 511216 , 512411 , 516230 , 516938 , 517676 , 518171 , 519511 , 521617 , 522905 , 523454 , 523937 , 524100 , 524490 , 525092 , 531047 , 535728 , 536125 , 542971 , 548848 , 554060 , 558958 , 560002 , 562732 , 564711 , 571806 , 575488 , 575812 , 576054 , 576113 , 590886 , 599605 , 599734 , 601170 , 606500 , 615645 , 619878 , 621745 , 667024 , 667810 , 696165 , 696189 , 707786 , 711590 , 713361 , 715397 , 716503 , 722404 , 722714 , 727465 , 736687 , 758681 , 774244 , 779093 , 793567 , 800341 , 810182 );
Copy