3
9.84 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
552023
569726
515706
551984
515702
546219
566465
684989
552883
535110
673053
793934
477498
396928
551067
552040
525192
497235
552933
534209
499485
825906
512173
545484
520151
542369
554432
427358
525197
469366
566011
515886
512215
492412
541586
467705
568478
20617
469536
478427
518972
525176
543888
500077
515734
512680
565974
601159
512188
641465
478032
419840
485074
490785
512176
536340
556421
622990
528713
560217
412583
541848
559183
460969
]
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 (552023 , 569726 , 515706 , 551984 , 515702 , 546219 , 566465 , 684989 , 552883 , 535110 , 673053 , 793934 , 477498 , 396928 , 551067 , 552040 , 525192 , 497235 , 552933 , 534209 , 499485 , 825906 , 512173 , 545484 , 520151 , 542369 , 554432 , 427358 , 525197 , 469366 , 566011 , 515886 , 512215 , 492412 , 541586 , 467705 , 568478 , 20617 , 469536 , 478427 , 518972 , 525176 , 543888 , 500077 , 515734 , 512680 , 565974 , 601159 , 512188 , 641465 , 478032 , 419840 , 485074 , 490785 , 512176 , 536340 , 556421 , 622990 , 528713 , 560217 , 412583 , 541848 , 559183 , 460969 );
Copy
4
2.89 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
20617
396928
412583
419840
427358
460969
467705
469366
469536
477498
478032
478427
485074
490785
492412
497235
499485
500077
512173
512176
512188
512215
512680
515702
515706
515734
515886
518972
520151
525176
525192
525197
528713
534209
535110
536340
541586
541848
542369
543888
545484
546219
551067
551984
552023
552040
552883
552933
554432
556421
559183
560217
565974
566011
566465
568478
569726
601159
622990
641465
673053
684989
793934
825906
]
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 (20617 , 396928 , 412583 , 419840 , 427358 , 460969 , 467705 , 469366 , 469536 , 477498 , 478032 , 478427 , 485074 , 490785 , 492412 , 497235 , 499485 , 500077 , 512173 , 512176 , 512188 , 512215 , 512680 , 515702 , 515706 , 515734 , 515886 , 518972 , 520151 , 525176 , 525192 , 525197 , 528713 , 534209 , 535110 , 536340 , 541586 , 541848 , 542369 , 543888 , 545484 , 546219 , 551067 , 551984 , 552023 , 552040 , 552883 , 552933 , 554432 , 556421 , 559183 , 560217 , 565974 , 566011 , 566465 , 568478 , 569726 , 601159 , 622990 , 641465 , 673053 , 684989 , 793934 , 825906 );
Copy
5
87.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
20617
396928
412583
419840
427358
460969
467705
469366
469536
477498
478032
478427
485074
490785
492412
497235
499485
500077
512173
512176
512188
512215
512680
515702
515706
515734
515886
518972
520151
525176
525192
525197
528713
534209
535110
536340
541586
541848
542369
543888
545484
546219
551067
551984
552023
552040
552883
552933
554432
556421
559183
560217
565974
566011
566465
568478
569726
601159
622990
641465
673053
684989
793934
825906
]
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 (20617 , 396928 , 412583 , 419840 , 427358 , 460969 , 467705 , 469366 , 469536 , 477498 , 478032 , 478427 , 485074 , 490785 , 492412 , 497235 , 499485 , 500077 , 512173 , 512176 , 512188 , 512215 , 512680 , 515702 , 515706 , 515734 , 515886 , 518972 , 520151 , 525176 , 525192 , 525197 , 528713 , 534209 , 535110 , 536340 , 541586 , 541848 , 542369 , 543888 , 545484 , 546219 , 551067 , 551984 , 552023 , 552040 , 552883 , 552933 , 554432 , 556421 , 559183 , 560217 , 565974 , 566011 , 566465 , 568478 , 569726 , 601159 , 622990 , 641465 , 673053 , 684989 , 793934 , 825906 );
Copy