3
15.71 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
472974
507013
527123
391277
527898
485996
590959
646894
452692
464243
542535
448077
449317
623617
457149
648914
572711
508737
418879
472615
518638
557707
558645
445792
517752
429848
682421
439845
511320
593043
752961
417800
637741
525262
600995
540799
586576
449261
500947
577502
617107
618471
467904
445108
472544
465024
493420
527207
639810
590881
511013
624841
504418
673661
526220
525226
558380
427981
524535
632020
516291
554386
]
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 (472974 , 507013 , 527123 , 391277 , 527898 , 485996 , 590959 , 646894 , 452692 , 464243 , 542535 , 448077 , 449317 , 623617 , 457149 , 648914 , 572711 , 508737 , 418879 , 472615 , 518638 , 557707 , 558645 , 445792 , 517752 , 429848 , 682421 , 439845 , 511320 , 593043 , 752961 , 417800 , 637741 , 525262 , 600995 , 540799 , 586576 , 449261 , 500947 , 577502 , 617107 , 618471 , 467904 , 445108 , 472544 , 465024 , 493420 , 527207 , 639810 , 590881 , 511013 , 624841 , 504418 , 673661 , 526220 , 525226 , 558380 , 427981 , 524535 , 632020 , 516291 , 554386 );
Copy
4
3.47 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
417800
418879
427981
429848
439845
445108
445792
448077
449261
449317
452692
457149
464243
465024
467904
472544
472615
472974
485996
493420
500947
504418
507013
508737
511013
511320
516291
517752
518638
524535
525226
525262
526220
527123
527207
527898
540799
542535
554386
557707
558380
558645
572711
577502
586576
590881
590959
593043
600995
617107
618471
623617
624841
632020
637741
639810
646894
648914
673661
682421
752961
]
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 , 417800 , 418879 , 427981 , 429848 , 439845 , 445108 , 445792 , 448077 , 449261 , 449317 , 452692 , 457149 , 464243 , 465024 , 467904 , 472544 , 472615 , 472974 , 485996 , 493420 , 500947 , 504418 , 507013 , 508737 , 511013 , 511320 , 516291 , 517752 , 518638 , 524535 , 525226 , 525262 , 526220 , 527123 , 527207 , 527898 , 540799 , 542535 , 554386 , 557707 , 558380 , 558645 , 572711 , 577502 , 586576 , 590881 , 590959 , 593043 , 600995 , 617107 , 618471 , 623617 , 624841 , 632020 , 637741 , 639810 , 646894 , 648914 , 673661 , 682421 , 752961 );
Copy
5
79.04 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
417800
418879
427981
429848
439845
445108
445792
448077
449261
449317
452692
457149
464243
465024
467904
472544
472615
472974
485996
493420
500947
504418
507013
508737
511013
511320
516291
517752
518638
524535
525226
525262
526220
527123
527207
527898
540799
542535
554386
557707
558380
558645
572711
577502
586576
590881
590959
593043
600995
617107
618471
623617
624841
632020
637741
639810
646894
648914
673661
682421
752961
]
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 , 417800 , 418879 , 427981 , 429848 , 439845 , 445108 , 445792 , 448077 , 449261 , 449317 , 452692 , 457149 , 464243 , 465024 , 467904 , 472544 , 472615 , 472974 , 485996 , 493420 , 500947 , 504418 , 507013 , 508737 , 511013 , 511320 , 516291 , 517752 , 518638 , 524535 , 525226 , 525262 , 526220 , 527123 , 527207 , 527898 , 540799 , 542535 , 554386 , 557707 , 558380 , 558645 , 572711 , 577502 , 586576 , 590881 , 590959 , 593043 , 600995 , 617107 , 618471 , 623617 , 624841 , 632020 , 637741 , 639810 , 646894 , 648914 , 673661 , 682421 , 752961 );
Copy