3
9.21 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
767743
598045
556164
454077
595855
827970
580599
539197
782466
769167
785606
572917
592874
574011
562214
556069
587787
589614
786900
735628
669026
485440
557341
599347
776084
782047
536070
592970
630930
799086
780292
581405
547566
573973
771082
552718
580588
788434
599494
714258
600500
564632
540862
812612
577540
526242
553726
562222
638727
638955
810852
537504
528034
473055
626911
674285
584421
546315
597450
461220
599463
437518
506197
505939
439243
520850
579344
598564
]
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 (767743 , 598045 , 556164 , 454077 , 595855 , 827970 , 580599 , 539197 , 782466 , 769167 , 785606 , 572917 , 592874 , 574011 , 562214 , 556069 , 587787 , 589614 , 786900 , 735628 , 669026 , 485440 , 557341 , 599347 , 776084 , 782047 , 536070 , 592970 , 630930 , 799086 , 780292 , 581405 , 547566 , 573973 , 771082 , 552718 , 580588 , 788434 , 599494 , 714258 , 600500 , 564632 , 540862 , 812612 , 577540 , 526242 , 553726 , 562222 , 638727 , 638955 , 810852 , 537504 , 528034 , 473055 , 626911 , 674285 , 584421 , 546315 , 597450 , 461220 , 599463 , 437518 , 506197 , 505939 , 439243 , 520850 , 579344 , 598564 );
Copy
4
3.66 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
437518
439243
454077
461220
473055
485440
505939
506197
520850
526242
528034
536070
537504
539197
540862
546315
547566
552718
553726
556069
556164
557341
562214
562222
564632
572917
573973
574011
577540
579344
580588
580599
581405
584421
587787
589614
592874
592970
595855
597450
598045
598564
599347
599463
599494
600500
626911
630930
638727
638955
669026
674285
714258
735628
767743
769167
771082
776084
780292
782047
782466
785606
786900
788434
799086
810852
812612
827970
]
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 (437518 , 439243 , 454077 , 461220 , 473055 , 485440 , 505939 , 506197 , 520850 , 526242 , 528034 , 536070 , 537504 , 539197 , 540862 , 546315 , 547566 , 552718 , 553726 , 556069 , 556164 , 557341 , 562214 , 562222 , 564632 , 572917 , 573973 , 574011 , 577540 , 579344 , 580588 , 580599 , 581405 , 584421 , 587787 , 589614 , 592874 , 592970 , 595855 , 597450 , 598045 , 598564 , 599347 , 599463 , 599494 , 600500 , 626911 , 630930 , 638727 , 638955 , 669026 , 674285 , 714258 , 735628 , 767743 , 769167 , 771082 , 776084 , 780292 , 782047 , 782466 , 785606 , 786900 , 788434 , 799086 , 810852 , 812612 , 827970 );
Copy
5
172.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
437518
439243
454077
461220
473055
485440
505939
506197
520850
526242
528034
536070
537504
539197
540862
546315
547566
552718
553726
556069
556164
557341
562214
562222
564632
572917
573973
574011
577540
579344
580588
580599
581405
584421
587787
589614
592874
592970
595855
597450
598045
598564
599347
599463
599494
600500
626911
630930
638727
638955
669026
674285
714258
735628
767743
769167
771082
776084
780292
782047
782466
785606
786900
788434
799086
810852
812612
827970
]
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 (437518 , 439243 , 454077 , 461220 , 473055 , 485440 , 505939 , 506197 , 520850 , 526242 , 528034 , 536070 , 537504 , 539197 , 540862 , 546315 , 547566 , 552718 , 553726 , 556069 , 556164 , 557341 , 562214 , 562222 , 564632 , 572917 , 573973 , 574011 , 577540 , 579344 , 580588 , 580599 , 581405 , 584421 , 587787 , 589614 , 592874 , 592970 , 595855 , 597450 , 598045 , 598564 , 599347 , 599463 , 599494 , 600500 , 626911 , 630930 , 638727 , 638955 , 669026 , 674285 , 714258 , 735628 , 767743 , 769167 , 771082 , 776084 , 780292 , 782047 , 782466 , 785606 , 786900 , 788434 , 799086 , 810852 , 812612 , 827970 );
Copy