3
9.97 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
442991
459657
527201
676582
587915
592850
622054
589682
787120
769487
633540
506225
521796
599726
447862
688024
400169
706280
599621
420227
437605
491978
442544
661396
724758
523773
507590
494782
409222
491963
565061
704561
400191
448640
576636
448687
581734
580647
673577
599635
585395
472119
400517
524100
515137
528163
684910
688664
402985
434608
497104
597874
431242
520701
514647
449889
482555
449635
647960
514294
579754
604161
606948
609953
507681
434601
521159
]
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 (442991 , 459657 , 527201 , 676582 , 587915 , 592850 , 622054 , 589682 , 787120 , 769487 , 633540 , 506225 , 521796 , 599726 , 447862 , 688024 , 400169 , 706280 , 599621 , 420227 , 437605 , 491978 , 442544 , 661396 , 724758 , 523773 , 507590 , 494782 , 409222 , 491963 , 565061 , 704561 , 400191 , 448640 , 576636 , 448687 , 581734 , 580647 , 673577 , 599635 , 585395 , 472119 , 400517 , 524100 , 515137 , 528163 , 684910 , 688664 , 402985 , 434608 , 497104 , 597874 , 431242 , 520701 , 514647 , 449889 , 482555 , 449635 , 647960 , 514294 , 579754 , 604161 , 606948 , 609953 , 507681 , 434601 , 521159 );
Copy
4
3.33 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
400169
400191
400517
402985
409222
420227
431242
434601
434608
437605
442544
442991
447862
448640
448687
449635
449889
459657
472119
482555
491963
491978
494782
497104
506225
507590
507681
514294
514647
515137
520701
521159
521796
523773
524100
528163
565061
576636
579754
580647
581734
585395
587915
589682
592850
597874
599621
599635
599726
604161
606948
609953
622054
633540
647960
661396
673577
684910
688024
688664
704561
706280
724758
769487
787120
]
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 (400169 , 400191 , 400517 , 402985 , 409222 , 420227 , 431242 , 434601 , 434608 , 437605 , 442544 , 442991 , 447862 , 448640 , 448687 , 449635 , 449889 , 459657 , 472119 , 482555 , 491963 , 491978 , 494782 , 497104 , 506225 , 507590 , 507681 , 514294 , 514647 , 515137 , 520701 , 521159 , 521796 , 523773 , 524100 , 528163 , 565061 , 576636 , 579754 , 580647 , 581734 , 585395 , 587915 , 589682 , 592850 , 597874 , 599621 , 599635 , 599726 , 604161 , 606948 , 609953 , 622054 , 633540 , 647960 , 661396 , 673577 , 684910 , 688024 , 688664 , 704561 , 706280 , 724758 , 769487 , 787120 );
Copy
5
80.85 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
400169
400191
400517
402985
409222
420227
431242
434601
434608
437605
442544
442991
447862
448640
448687
449635
449889
459657
472119
482555
491963
491978
494782
497104
506225
507590
507681
514294
514647
515137
520701
521159
521796
523773
524100
528163
565061
576636
579754
580647
581734
585395
587915
589682
592850
597874
599621
599635
599726
604161
606948
609953
622054
633540
647960
661396
673577
684910
688024
688664
704561
706280
724758
769487
787120
]
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 (400169 , 400191 , 400517 , 402985 , 409222 , 420227 , 431242 , 434601 , 434608 , 437605 , 442544 , 442991 , 447862 , 448640 , 448687 , 449635 , 449889 , 459657 , 472119 , 482555 , 491963 , 491978 , 494782 , 497104 , 506225 , 507590 , 507681 , 514294 , 514647 , 515137 , 520701 , 521159 , 521796 , 523773 , 524100 , 528163 , 565061 , 576636 , 579754 , 580647 , 581734 , 585395 , 587915 , 589682 , 592850 , 597874 , 599621 , 599635 , 599726 , 604161 , 606948 , 609953 , 622054 , 633540 , 647960 , 661396 , 673577 , 684910 , 688024 , 688664 , 704561 , 706280 , 724758 , 769487 , 787120 );
Copy