3
11.67 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
723597
786127
716935
756863
808533
606619
449418
425976
551444
425523
239151
740117
465507
717948
717689
798437
489624
721724
398678
521979
525213
490079
521998
618676
586269
771675
364242
489110
512531
566005
811263
720868
519142
601076
6696
388647
625442
725382
474498
723585
558630
605758
620491
489370
505952
521984
489372
489630
491573
494642
518836
565188
599713
729635
460728
431494
440624
490093
512541
428533
428531
593150
]
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 (723597 , 786127 , 716935 , 756863 , 808533 , 606619 , 449418 , 425976 , 551444 , 425523 , 239151 , 740117 , 465507 , 717948 , 717689 , 798437 , 489624 , 721724 , 398678 , 521979 , 525213 , 490079 , 521998 , 618676 , 586269 , 771675 , 364242 , 489110 , 512531 , 566005 , 811263 , 720868 , 519142 , 601076 , 6696 , 388647 , 625442 , 725382 , 474498 , 723585 , 558630 , 605758 , 620491 , 489370 , 505952 , 521984 , 489372 , 489630 , 491573 , 494642 , 518836 , 565188 , 599713 , 729635 , 460728 , 431494 , 440624 , 490093 , 512541 , 428533 , 428531 , 593150 );
Copy
4
3.27 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
6696
239151
364242
388647
398678
425523
425976
428531
428533
431494
440624
449418
460728
465507
474498
489110
489370
489372
489624
489630
490079
490093
491573
494642
505952
512531
512541
518836
519142
521979
521984
521998
525213
551444
558630
565188
566005
586269
593150
599713
601076
605758
606619
618676
620491
625442
716935
717689
717948
720868
721724
723585
723597
725382
729635
740117
756863
771675
786127
798437
808533
811263
]
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 (6696 , 239151 , 364242 , 388647 , 398678 , 425523 , 425976 , 428531 , 428533 , 431494 , 440624 , 449418 , 460728 , 465507 , 474498 , 489110 , 489370 , 489372 , 489624 , 489630 , 490079 , 490093 , 491573 , 494642 , 505952 , 512531 , 512541 , 518836 , 519142 , 521979 , 521984 , 521998 , 525213 , 551444 , 558630 , 565188 , 566005 , 586269 , 593150 , 599713 , 601076 , 605758 , 606619 , 618676 , 620491 , 625442 , 716935 , 717689 , 717948 , 720868 , 721724 , 723585 , 723597 , 725382 , 729635 , 740117 , 756863 , 771675 , 786127 , 798437 , 808533 , 811263 );
Copy
5
69.36 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
6696
239151
364242
388647
398678
425523
425976
428531
428533
431494
440624
449418
460728
465507
474498
489110
489370
489372
489624
489630
490079
490093
491573
494642
505952
512531
512541
518836
519142
521979
521984
521998
525213
551444
558630
565188
566005
586269
593150
599713
601076
605758
606619
618676
620491
625442
716935
717689
717948
720868
721724
723585
723597
725382
729635
740117
756863
771675
786127
798437
808533
811263
]
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 (6696 , 239151 , 364242 , 388647 , 398678 , 425523 , 425976 , 428531 , 428533 , 431494 , 440624 , 449418 , 460728 , 465507 , 474498 , 489110 , 489370 , 489372 , 489624 , 489630 , 490079 , 490093 , 491573 , 494642 , 505952 , 512531 , 512541 , 518836 , 519142 , 521979 , 521984 , 521998 , 525213 , 551444 , 558630 , 565188 , 566005 , 586269 , 593150 , 599713 , 601076 , 605758 , 606619 , 618676 , 620491 , 625442 , 716935 , 717689 , 717948 , 720868 , 721724 , 723585 , 723597 , 725382 , 729635 , 740117 , 756863 , 771675 , 786127 , 798437 , 808533 , 811263 );
Copy