4
10.81 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
799105
770020
803749
578680
596960
415742
707361
769968
819227
811104
799168
799228
680428
613185
595315
821450
554990
536333
770048
826514
813921
539557
534311
586393
799205
394309
254390
524473
482623
584300
586441
604804
432185
557871
587170
592671
426657
481815
437807
425088
483957
433556
469459
552478
553845
605183
477871
516873
521618
498454
551824
586136
597722
426647
599635
508300
499701
454568
483709
588144
603295
505891
545828
]
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 (799105 , 770020 , 803749 , 578680 , 596960 , 415742 , 707361 , 769968 , 819227 , 811104 , 799168 , 799228 , 680428 , 613185 , 595315 , 821450 , 554990 , 536333 , 770048 , 826514 , 813921 , 539557 , 534311 , 586393 , 799205 , 394309 , 254390 , 524473 , 482623 , 584300 , 586441 , 604804 , 432185 , 557871 , 587170 , 592671 , 426657 , 481815 , 437807 , 425088 , 483957 , 433556 , 469459 , 552478 , 553845 , 605183 , 477871 , 516873 , 521618 , 498454 , 551824 , 586136 , 597722 , 426647 , 599635 , 508300 , 499701 , 454568 , 483709 , 588144 , 603295 , 505891 , 545828 );
Copy
5
3.02 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
254390
394309
415742
425088
426647
426657
432185
433556
437807
454568
469459
477871
481815
482623
483709
483957
498454
499701
505891
508300
516873
521618
524473
534311
536333
539557
545828
551824
552478
553845
554990
557871
578680
584300
586136
586393
586441
587170
588144
592671
595315
596960
597722
599635
603295
604804
605183
613185
680428
707361
769968
770020
770048
799105
799168
799205
799228
803749
811104
813921
819227
821450
826514
]
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 (254390 , 394309 , 415742 , 425088 , 426647 , 426657 , 432185 , 433556 , 437807 , 454568 , 469459 , 477871 , 481815 , 482623 , 483709 , 483957 , 498454 , 499701 , 505891 , 508300 , 516873 , 521618 , 524473 , 534311 , 536333 , 539557 , 545828 , 551824 , 552478 , 553845 , 554990 , 557871 , 578680 , 584300 , 586136 , 586393 , 586441 , 587170 , 588144 , 592671 , 595315 , 596960 , 597722 , 599635 , 603295 , 604804 , 605183 , 613185 , 680428 , 707361 , 769968 , 770020 , 770048 , 799105 , 799168 , 799205 , 799228 , 803749 , 811104 , 813921 , 819227 , 821450 , 826514 );
Copy
6
95.42 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
254390
394309
415742
425088
426647
426657
432185
433556
437807
454568
469459
477871
481815
482623
483709
483957
498454
499701
505891
508300
516873
521618
524473
534311
536333
539557
545828
551824
552478
553845
554990
557871
578680
584300
586136
586393
586441
587170
588144
592671
595315
596960
597722
599635
603295
604804
605183
613185
680428
707361
769968
770020
770048
799105
799168
799205
799228
803749
811104
813921
819227
821450
826514
]
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 (254390 , 394309 , 415742 , 425088 , 426647 , 426657 , 432185 , 433556 , 437807 , 454568 , 469459 , 477871 , 481815 , 482623 , 483709 , 483957 , 498454 , 499701 , 505891 , 508300 , 516873 , 521618 , 524473 , 534311 , 536333 , 539557 , 545828 , 551824 , 552478 , 553845 , 554990 , 557871 , 578680 , 584300 , 586136 , 586393 , 586441 , 587170 , 588144 , 592671 , 595315 , 596960 , 597722 , 599635 , 603295 , 604804 , 605183 , 613185 , 680428 , 707361 , 769968 , 770020 , 770048 , 799105 , 799168 , 799205 , 799228 , 803749 , 811104 , 813921 , 819227 , 821450 , 826514 );
Copy