4
16.65 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
455767
473889
484364
558208
562836
556029
556054
561061
542960
576645
671746
584709
400719
443822
423816
457470
444238
477730
524969
491119
492625
529074
484383
484880
502817
518852
541623
494285
559120
548311
670951
571201
576720
597068
443831
466869
483388
494567
484130
541651
541593
559132
577356
571244
584712
624195
445077
541635
460733
559119
542196
550348
541769
576723
659487
560147
610419
597571
623471
636231
518468
550329
554639
576653
542192
659369
526546
527048
541688
559127
541871
466791
]
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 (455767 , 473889 , 484364 , 558208 , 562836 , 556029 , 556054 , 561061 , 542960 , 576645 , 671746 , 584709 , 400719 , 443822 , 423816 , 457470 , 444238 , 477730 , 524969 , 491119 , 492625 , 529074 , 484383 , 484880 , 502817 , 518852 , 541623 , 494285 , 559120 , 548311 , 670951 , 571201 , 576720 , 597068 , 443831 , 466869 , 483388 , 494567 , 484130 , 541651 , 541593 , 559132 , 577356 , 571244 , 584712 , 624195 , 445077 , 541635 , 460733 , 559119 , 542196 , 550348 , 541769 , 576723 , 659487 , 560147 , 610419 , 597571 , 623471 , 636231 , 518468 , 550329 , 554639 , 576653 , 542192 , 659369 , 526546 , 527048 , 541688 , 559127 , 541871 , 466791 );
Copy
5
2.73 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
400719
423816
443822
443831
444238
445077
455767
457470
460733
466791
466869
473889
477730
483388
484130
484364
484383
484880
491119
492625
494285
494567
502817
518468
518852
524969
526546
527048
529074
541593
541623
541635
541651
541688
541769
541871
542192
542196
542960
548311
550329
550348
554639
556029
556054
558208
559119
559120
559127
559132
560147
561061
562836
571201
571244
576645
576653
576720
576723
577356
584709
584712
597068
597571
610419
623471
624195
636231
659369
659487
670951
671746
]
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 (400719 , 423816 , 443822 , 443831 , 444238 , 445077 , 455767 , 457470 , 460733 , 466791 , 466869 , 473889 , 477730 , 483388 , 484130 , 484364 , 484383 , 484880 , 491119 , 492625 , 494285 , 494567 , 502817 , 518468 , 518852 , 524969 , 526546 , 527048 , 529074 , 541593 , 541623 , 541635 , 541651 , 541688 , 541769 , 541871 , 542192 , 542196 , 542960 , 548311 , 550329 , 550348 , 554639 , 556029 , 556054 , 558208 , 559119 , 559120 , 559127 , 559132 , 560147 , 561061 , 562836 , 571201 , 571244 , 576645 , 576653 , 576720 , 576723 , 577356 , 584709 , 584712 , 597068 , 597571 , 610419 , 623471 , 624195 , 636231 , 659369 , 659487 , 670951 , 671746 );
Copy
6
108.48 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
400719
423816
443822
443831
444238
445077
455767
457470
460733
466791
466869
473889
477730
483388
484130
484364
484383
484880
491119
492625
494285
494567
502817
518468
518852
524969
526546
527048
529074
541593
541623
541635
541651
541688
541769
541871
542192
542196
542960
548311
550329
550348
554639
556029
556054
558208
559119
559120
559127
559132
560147
561061
562836
571201
571244
576645
576653
576720
576723
577356
584709
584712
597068
597571
610419
623471
624195
636231
659369
659487
670951
671746
]
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 (400719 , 423816 , 443822 , 443831 , 444238 , 445077 , 455767 , 457470 , 460733 , 466791 , 466869 , 473889 , 477730 , 483388 , 484130 , 484364 , 484383 , 484880 , 491119 , 492625 , 494285 , 494567 , 502817 , 518468 , 518852 , 524969 , 526546 , 527048 , 529074 , 541593 , 541623 , 541635 , 541651 , 541688 , 541769 , 541871 , 542192 , 542196 , 542960 , 548311 , 550329 , 550348 , 554639 , 556029 , 556054 , 558208 , 559119 , 559120 , 559127 , 559132 , 560147 , 561061 , 562836 , 571201 , 571244 , 576645 , 576653 , 576720 , 576723 , 577356 , 584709 , 584712 , 597068 , 597571 , 610419 , 623471 , 624195 , 636231 , 659369 , 659487 , 670951 , 671746 );
Copy