3
9.93 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
516668
597546
590391
778256
687447
619384
759372
778818
794406
810439
701733
670702
608528
476636
819872
652188
474050
453849
512373
666392
697732
568304
673038
418512
786137
601560
492673
463181
685263
469901
553505
477954
775561
456732
400945
541767
453625
523970
560579
423649
415834
518329
518319
576349
471844
698148
519014
475102
471055
559048
470924
498294
516740
517856
580596
506475
533461
482080
552344
449428
415836
523171
594437
]
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 (516668 , 597546 , 590391 , 778256 , 687447 , 619384 , 759372 , 778818 , 794406 , 810439 , 701733 , 670702 , 608528 , 476636 , 819872 , 652188 , 474050 , 453849 , 512373 , 666392 , 697732 , 568304 , 673038 , 418512 , 786137 , 601560 , 492673 , 463181 , 685263 , 469901 , 553505 , 477954 , 775561 , 456732 , 400945 , 541767 , 453625 , 523970 , 560579 , 423649 , 415834 , 518329 , 518319 , 576349 , 471844 , 698148 , 519014 , 475102 , 471055 , 559048 , 470924 , 498294 , 516740 , 517856 , 580596 , 506475 , 533461 , 482080 , 552344 , 449428 , 415836 , 523171 , 594437 );
Copy
4
2.55 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
400945
415834
415836
418512
423649
449428
453625
453849
456732
463181
469901
470924
471055
471844
474050
475102
476636
477954
482080
492673
498294
506475
512373
516668
516740
517856
518319
518329
519014
523171
523970
533461
541767
552344
553505
559048
560579
568304
576349
580596
590391
594437
597546
601560
608528
619384
652188
666392
670702
673038
685263
687447
697732
698148
701733
759372
775561
778256
778818
786137
794406
810439
819872
]
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 (400945 , 415834 , 415836 , 418512 , 423649 , 449428 , 453625 , 453849 , 456732 , 463181 , 469901 , 470924 , 471055 , 471844 , 474050 , 475102 , 476636 , 477954 , 482080 , 492673 , 498294 , 506475 , 512373 , 516668 , 516740 , 517856 , 518319 , 518329 , 519014 , 523171 , 523970 , 533461 , 541767 , 552344 , 553505 , 559048 , 560579 , 568304 , 576349 , 580596 , 590391 , 594437 , 597546 , 601560 , 608528 , 619384 , 652188 , 666392 , 670702 , 673038 , 685263 , 687447 , 697732 , 698148 , 701733 , 759372 , 775561 , 778256 , 778818 , 786137 , 794406 , 810439 , 819872 );
Copy
5
105.69 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
400945
415834
415836
418512
423649
449428
453625
453849
456732
463181
469901
470924
471055
471844
474050
475102
476636
477954
482080
492673
498294
506475
512373
516668
516740
517856
518319
518329
519014
523171
523970
533461
541767
552344
553505
559048
560579
568304
576349
580596
590391
594437
597546
601560
608528
619384
652188
666392
670702
673038
685263
687447
697732
698148
701733
759372
775561
778256
778818
786137
794406
810439
819872
]
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 (400945 , 415834 , 415836 , 418512 , 423649 , 449428 , 453625 , 453849 , 456732 , 463181 , 469901 , 470924 , 471055 , 471844 , 474050 , 475102 , 476636 , 477954 , 482080 , 492673 , 498294 , 506475 , 512373 , 516668 , 516740 , 517856 , 518319 , 518329 , 519014 , 523171 , 523970 , 533461 , 541767 , 552344 , 553505 , 559048 , 560579 , 568304 , 576349 , 580596 , 590391 , 594437 , 597546 , 601560 , 608528 , 619384 , 652188 , 666392 , 670702 , 673038 , 685263 , 687447 , 697732 , 698148 , 701733 , 759372 , 775561 , 778256 , 778818 , 786137 , 794406 , 810439 , 819872 );
Copy