4
9.40 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
530111
521227
528707
581564
542730
570966
582708
581263
707434
581577
588432
595801
612414
619752
593043
593531
600433
637679
604251
803039
802723
788257
814376
507013
516975
512535
562765
566833
707706
707557
714119
675071
593536
600013
604250
616978
637007
593069
507778
814429
499182
517493
579391
646896
707692
625244
737127
644642
710435
521782
515994
543731
662896
604939
603612
523171
539288
507285
601162
599833
524621
560783
562754
562758
562763
593832
599835
599967
]
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 (530111 , 521227 , 528707 , 581564 , 542730 , 570966 , 582708 , 581263 , 707434 , 581577 , 588432 , 595801 , 612414 , 619752 , 593043 , 593531 , 600433 , 637679 , 604251 , 803039 , 802723 , 788257 , 814376 , 507013 , 516975 , 512535 , 562765 , 566833 , 707706 , 707557 , 714119 , 675071 , 593536 , 600013 , 604250 , 616978 , 637007 , 593069 , 507778 , 814429 , 499182 , 517493 , 579391 , 646896 , 707692 , 625244 , 737127 , 644642 , 710435 , 521782 , 515994 , 543731 , 662896 , 604939 , 603612 , 523171 , 539288 , 507285 , 601162 , 599833 , 524621 , 560783 , 562754 , 562758 , 562763 , 593832 , 599835 , 599967 );
Copy
5
416.67 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
499182
507013
507285
507778
512535
515994
516975
517493
521227
521782
523171
524621
528707
530111
539288
542730
543731
560783
562754
562758
562763
562765
566833
570966
579391
581263
581564
581577
582708
588432
593043
593069
593531
593536
593832
595801
599833
599835
599967
600013
600433
601162
603612
604250
604251
604939
612414
616978
619752
625244
637007
637679
644642
646896
662896
675071
707434
707557
707692
707706
710435
714119
737127
788257
802723
803039
814376
814429
]
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 (499182 , 507013 , 507285 , 507778 , 512535 , 515994 , 516975 , 517493 , 521227 , 521782 , 523171 , 524621 , 528707 , 530111 , 539288 , 542730 , 543731 , 560783 , 562754 , 562758 , 562763 , 562765 , 566833 , 570966 , 579391 , 581263 , 581564 , 581577 , 582708 , 588432 , 593043 , 593069 , 593531 , 593536 , 593832 , 595801 , 599833 , 599835 , 599967 , 600013 , 600433 , 601162 , 603612 , 604250 , 604251 , 604939 , 612414 , 616978 , 619752 , 625244 , 637007 , 637679 , 644642 , 646896 , 662896 , 675071 , 707434 , 707557 , 707692 , 707706 , 710435 , 714119 , 737127 , 788257 , 802723 , 803039 , 814376 , 814429 );
Copy
6
76.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
499182
507013
507285
507778
512535
515994
516975
517493
521227
521782
523171
524621
528707
530111
539288
542730
543731
560783
562754
562758
562763
562765
566833
570966
579391
581263
581564
581577
582708
588432
593043
593069
593531
593536
593832
595801
599833
599835
599967
600013
600433
601162
603612
604250
604251
604939
612414
616978
619752
625244
637007
637679
644642
646896
662896
675071
707434
707557
707692
707706
710435
714119
737127
788257
802723
803039
814376
814429
]
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 (499182 , 507013 , 507285 , 507778 , 512535 , 515994 , 516975 , 517493 , 521227 , 521782 , 523171 , 524621 , 528707 , 530111 , 539288 , 542730 , 543731 , 560783 , 562754 , 562758 , 562763 , 562765 , 566833 , 570966 , 579391 , 581263 , 581564 , 581577 , 582708 , 588432 , 593043 , 593069 , 593531 , 593536 , 593832 , 595801 , 599833 , 599835 , 599967 , 600013 , 600433 , 601162 , 603612 , 604250 , 604251 , 604939 , 612414 , 616978 , 619752 , 625244 , 637007 , 637679 , 644642 , 646896 , 662896 , 675071 , 707434 , 707557 , 707692 , 707706 , 710435 , 714119 , 737127 , 788257 , 802723 , 803039 , 814376 , 814429 );
Copy