3
14.38 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
826874
469824
472615
500478
525439
500947
552791
556645
574083
685836
677898
689074
558645
566520
603036
599117
618471
586493
786114
736912
417800
474383
428892
402793
451304
524736
524003
516291
524535
639810
402784
437084
472974
527123
472544
475287
485996
486077
555992
558566
585717
604092
590959
623617
464520
391277
418421
523644
447679
632020
429848
424332
504418
517752
682421
590881
457149
418879
437960
540799
527121
527898
427981
465024
537670
439845
525262
473139
525226
493420
586576
603994
554386
526220
]
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 (826874 , 469824 , 472615 , 500478 , 525439 , 500947 , 552791 , 556645 , 574083 , 685836 , 677898 , 689074 , 558645 , 566520 , 603036 , 599117 , 618471 , 586493 , 786114 , 736912 , 417800 , 474383 , 428892 , 402793 , 451304 , 524736 , 524003 , 516291 , 524535 , 639810 , 402784 , 437084 , 472974 , 527123 , 472544 , 475287 , 485996 , 486077 , 555992 , 558566 , 585717 , 604092 , 590959 , 623617 , 464520 , 391277 , 418421 , 523644 , 447679 , 632020 , 429848 , 424332 , 504418 , 517752 , 682421 , 590881 , 457149 , 418879 , 437960 , 540799 , 527121 , 527898 , 427981 , 465024 , 537670 , 439845 , 525262 , 473139 , 525226 , 493420 , 586576 , 603994 , 554386 , 526220 );
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
391277
402784
402793
417800
418421
418879
424332
427981
428892
429848
437084
437960
439845
447679
451304
457149
464520
465024
469824
472544
472615
472974
473139
474383
475287
485996
486077
493420
500478
500947
504418
516291
517752
523644
524003
524535
524736
525226
525262
525439
526220
527121
527123
527898
537670
540799
552791
554386
555992
556645
558566
558645
566520
574083
585717
586493
586576
590881
590959
599117
603036
603994
604092
618471
623617
632020
639810
677898
682421
685836
689074
736912
786114
826874
]
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 (391277 , 402784 , 402793 , 417800 , 418421 , 418879 , 424332 , 427981 , 428892 , 429848 , 437084 , 437960 , 439845 , 447679 , 451304 , 457149 , 464520 , 465024 , 469824 , 472544 , 472615 , 472974 , 473139 , 474383 , 475287 , 485996 , 486077 , 493420 , 500478 , 500947 , 504418 , 516291 , 517752 , 523644 , 524003 , 524535 , 524736 , 525226 , 525262 , 525439 , 526220 , 527121 , 527123 , 527898 , 537670 , 540799 , 552791 , 554386 , 555992 , 556645 , 558566 , 558645 , 566520 , 574083 , 585717 , 586493 , 586576 , 590881 , 590959 , 599117 , 603036 , 603994 , 604092 , 618471 , 623617 , 632020 , 639810 , 677898 , 682421 , 685836 , 689074 , 736912 , 786114 , 826874 );
Copy
5
102.61 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
391277
402784
402793
417800
418421
418879
424332
427981
428892
429848
437084
437960
439845
447679
451304
457149
464520
465024
469824
472544
472615
472974
473139
474383
475287
485996
486077
493420
500478
500947
504418
516291
517752
523644
524003
524535
524736
525226
525262
525439
526220
527121
527123
527898
537670
540799
552791
554386
555992
556645
558566
558645
566520
574083
585717
586493
586576
590881
590959
599117
603036
603994
604092
618471
623617
632020
639810
677898
682421
685836
689074
736912
786114
826874
]
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 (391277 , 402784 , 402793 , 417800 , 418421 , 418879 , 424332 , 427981 , 428892 , 429848 , 437084 , 437960 , 439845 , 447679 , 451304 , 457149 , 464520 , 465024 , 469824 , 472544 , 472615 , 472974 , 473139 , 474383 , 475287 , 485996 , 486077 , 493420 , 500478 , 500947 , 504418 , 516291 , 517752 , 523644 , 524003 , 524535 , 524736 , 525226 , 525262 , 525439 , 526220 , 527121 , 527123 , 527898 , 537670 , 540799 , 552791 , 554386 , 555992 , 556645 , 558566 , 558645 , 566520 , 574083 , 585717 , 586493 , 586576 , 590881 , 590959 , 599117 , 603036 , 603994 , 604092 , 618471 , 623617 , 632020 , 639810 , 677898 , 682421 , 685836 , 689074 , 736912 , 786114 , 826874 );
Copy