3
9.49 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
715113
623254
403910
768952
382955
387207
677981
612291
771863
403808
609930
809805
383638
537511
705230
585214
748406
750940
612212
612289
585222
634699
597441
575684
716920
809813
677346
797750
733342
813703
594547
737051
612079
735909
563064
612298
758289
612169
417999
795459
612161
779948
811248
592377
612281
813669
724054
612311
594271
449454
518459
581677
581658
388219
742288
521374
568332
585175
612316
587617
574717
617783
612240
525584
776787
601678
626858
670745
524094
510267
580449
624990
628956
527576
505584
]
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 (715113 , 623254 , 403910 , 768952 , 382955 , 387207 , 677981 , 612291 , 771863 , 403808 , 609930 , 809805 , 383638 , 537511 , 705230 , 585214 , 748406 , 750940 , 612212 , 612289 , 585222 , 634699 , 597441 , 575684 , 716920 , 809813 , 677346 , 797750 , 733342 , 813703 , 594547 , 737051 , 612079 , 735909 , 563064 , 612298 , 758289 , 612169 , 417999 , 795459 , 612161 , 779948 , 811248 , 592377 , 612281 , 813669 , 724054 , 612311 , 594271 , 449454 , 518459 , 581677 , 581658 , 388219 , 742288 , 521374 , 568332 , 585175 , 612316 , 587617 , 574717 , 617783 , 612240 , 525584 , 776787 , 601678 , 626858 , 670745 , 524094 , 510267 , 580449 , 624990 , 628956 , 527576 , 505584 );
Copy
4
2.53 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
382955
383638
387207
388219
403808
403910
417999
449454
505584
510267
518459
521374
524094
525584
527576
537511
563064
568332
574717
575684
580449
581658
581677
585175
585214
585222
587617
592377
594271
594547
597441
601678
609930
612079
612161
612169
612212
612240
612281
612289
612291
612298
612311
612316
617783
623254
624990
626858
628956
634699
670745
677346
677981
705230
715113
716920
724054
733342
735909
737051
742288
748406
750940
758289
768952
771863
776787
779948
795459
797750
809805
809813
811248
813669
813703
]
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 (382955 , 383638 , 387207 , 388219 , 403808 , 403910 , 417999 , 449454 , 505584 , 510267 , 518459 , 521374 , 524094 , 525584 , 527576 , 537511 , 563064 , 568332 , 574717 , 575684 , 580449 , 581658 , 581677 , 585175 , 585214 , 585222 , 587617 , 592377 , 594271 , 594547 , 597441 , 601678 , 609930 , 612079 , 612161 , 612169 , 612212 , 612240 , 612281 , 612289 , 612291 , 612298 , 612311 , 612316 , 617783 , 623254 , 624990 , 626858 , 628956 , 634699 , 670745 , 677346 , 677981 , 705230 , 715113 , 716920 , 724054 , 733342 , 735909 , 737051 , 742288 , 748406 , 750940 , 758289 , 768952 , 771863 , 776787 , 779948 , 795459 , 797750 , 809805 , 809813 , 811248 , 813669 , 813703 );
Copy
5
101.46 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
382955
383638
387207
388219
403808
403910
417999
449454
505584
510267
518459
521374
524094
525584
527576
537511
563064
568332
574717
575684
580449
581658
581677
585175
585214
585222
587617
592377
594271
594547
597441
601678
609930
612079
612161
612169
612212
612240
612281
612289
612291
612298
612311
612316
617783
623254
624990
626858
628956
634699
670745
677346
677981
705230
715113
716920
724054
733342
735909
737051
742288
748406
750940
758289
768952
771863
776787
779948
795459
797750
809805
809813
811248
813669
813703
]
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 (382955 , 383638 , 387207 , 388219 , 403808 , 403910 , 417999 , 449454 , 505584 , 510267 , 518459 , 521374 , 524094 , 525584 , 527576 , 537511 , 563064 , 568332 , 574717 , 575684 , 580449 , 581658 , 581677 , 585175 , 585214 , 585222 , 587617 , 592377 , 594271 , 594547 , 597441 , 601678 , 609930 , 612079 , 612161 , 612169 , 612212 , 612240 , 612281 , 612289 , 612291 , 612298 , 612311 , 612316 , 617783 , 623254 , 624990 , 626858 , 628956 , 634699 , 670745 , 677346 , 677981 , 705230 , 715113 , 716920 , 724054 , 733342 , 735909 , 737051 , 742288 , 748406 , 750940 , 758289 , 768952 , 771863 , 776787 , 779948 , 795459 , 797750 , 809805 , 809813 , 811248 , 813669 , 813703 );
Copy