3
12.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
720056
630297
633795
637121
641678
633786
623198
637100
800588
812354
628091
633748
633753
633799
642043
716892
625660
591680
637036
424876
484457
631984
599913
637101
637030
483543
536648
597272
599922
530495
537648
646851
597262
600297
608431
532762
565267
645019
647343
648543
668505
592034
633736
637442
633741
633792
537212
634218
526553
628082
539203
530024
553272
680186
600360
628380
633449
537210
537236
667736
678097
625437
580596
642016
600011
523924
553280
]
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 (720056 , 630297 , 633795 , 637121 , 641678 , 633786 , 623198 , 637100 , 800588 , 812354 , 628091 , 633748 , 633753 , 633799 , 642043 , 716892 , 625660 , 591680 , 637036 , 424876 , 484457 , 631984 , 599913 , 637101 , 637030 , 483543 , 536648 , 597272 , 599922 , 530495 , 537648 , 646851 , 597262 , 600297 , 608431 , 532762 , 565267 , 645019 , 647343 , 648543 , 668505 , 592034 , 633736 , 637442 , 633741 , 633792 , 537212 , 634218 , 526553 , 628082 , 539203 , 530024 , 553272 , 680186 , 600360 , 628380 , 633449 , 537210 , 537236 , 667736 , 678097 , 625437 , 580596 , 642016 , 600011 , 523924 , 553280 );
Copy
4
3.30 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
424876
483543
484457
523924
526553
530024
530495
532762
536648
537210
537212
537236
537648
539203
553272
553280
565267
580596
591680
592034
597262
597272
599913
599922
600011
600297
600360
608431
623198
625437
625660
628082
628091
628380
630297
631984
633449
633736
633741
633748
633753
633786
633792
633795
633799
634218
637030
637036
637100
637101
637121
637442
641678
642016
642043
645019
646851
647343
648543
667736
668505
678097
680186
716892
720056
800588
812354
]
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 (424876 , 483543 , 484457 , 523924 , 526553 , 530024 , 530495 , 532762 , 536648 , 537210 , 537212 , 537236 , 537648 , 539203 , 553272 , 553280 , 565267 , 580596 , 591680 , 592034 , 597262 , 597272 , 599913 , 599922 , 600011 , 600297 , 600360 , 608431 , 623198 , 625437 , 625660 , 628082 , 628091 , 628380 , 630297 , 631984 , 633449 , 633736 , 633741 , 633748 , 633753 , 633786 , 633792 , 633795 , 633799 , 634218 , 637030 , 637036 , 637100 , 637101 , 637121 , 637442 , 641678 , 642016 , 642043 , 645019 , 646851 , 647343 , 648543 , 667736 , 668505 , 678097 , 680186 , 716892 , 720056 , 800588 , 812354 );
Copy
5
106.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
424876
483543
484457
523924
526553
530024
530495
532762
536648
537210
537212
537236
537648
539203
553272
553280
565267
580596
591680
592034
597262
597272
599913
599922
600011
600297
600360
608431
623198
625437
625660
628082
628091
628380
630297
631984
633449
633736
633741
633748
633753
633786
633792
633795
633799
634218
637030
637036
637100
637101
637121
637442
641678
642016
642043
645019
646851
647343
648543
667736
668505
678097
680186
716892
720056
800588
812354
]
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 (424876 , 483543 , 484457 , 523924 , 526553 , 530024 , 530495 , 532762 , 536648 , 537210 , 537212 , 537236 , 537648 , 539203 , 553272 , 553280 , 565267 , 580596 , 591680 , 592034 , 597262 , 597272 , 599913 , 599922 , 600011 , 600297 , 600360 , 608431 , 623198 , 625437 , 625660 , 628082 , 628091 , 628380 , 630297 , 631984 , 633449 , 633736 , 633741 , 633748 , 633753 , 633786 , 633792 , 633795 , 633799 , 634218 , 637030 , 637036 , 637100 , 637101 , 637121 , 637442 , 641678 , 642016 , 642043 , 645019 , 646851 , 647343 , 648543 , 667736 , 668505 , 678097 , 680186 , 716892 , 720056 , 800588 , 812354 );
Copy