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