3
10.12 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
577236
544448
537720
537728
779936
745335
564588
600557
725562
610962
565090
557847
597756
600370
593775
564583
565089
568139
568142
557843
584128
680898
580876
625182
600442
612821
718718
546858
568144
677815
641705
568140
656281
545387
565088
580153
605391
598355
464157
548583
557848
577519
528409
681686
591660
557845
642735
637460
752714
745176
754977
822300
385386
516498
419892
758431
807903
429176
506154
524657
477209
576117
463853
494526
557853
598090
469881
504589
527626
688333
517807
572031
431097
555043
541769
]
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 (577236 , 544448 , 537720 , 537728 , 779936 , 745335 , 564588 , 600557 , 725562 , 610962 , 565090 , 557847 , 597756 , 600370 , 593775 , 564583 , 565089 , 568139 , 568142 , 557843 , 584128 , 680898 , 580876 , 625182 , 600442 , 612821 , 718718 , 546858 , 568144 , 677815 , 641705 , 568140 , 656281 , 545387 , 565088 , 580153 , 605391 , 598355 , 464157 , 548583 , 557848 , 577519 , 528409 , 681686 , 591660 , 557845 , 642735 , 637460 , 752714 , 745176 , 754977 , 822300 , 385386 , 516498 , 419892 , 758431 , 807903 , 429176 , 506154 , 524657 , 477209 , 576117 , 463853 , 494526 , 557853 , 598090 , 469881 , 504589 , 527626 , 688333 , 517807 , 572031 , 431097 , 555043 , 541769 );
Copy
4
3.00 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
385386
419892
429176
431097
463853
464157
469881
477209
494526
504589
506154
516498
517807
524657
527626
528409
537720
537728
541769
544448
545387
546858
548583
555043
557843
557845
557847
557848
557853
564583
564588
565088
565089
565090
568139
568140
568142
568144
572031
576117
577236
577519
580153
580876
584128
591660
593775
597756
598090
598355
600370
600442
600557
605391
610962
612821
625182
637460
641705
642735
656281
677815
680898
681686
688333
718718
725562
745176
745335
752714
754977
758431
779936
807903
822300
]
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 (385386 , 419892 , 429176 , 431097 , 463853 , 464157 , 469881 , 477209 , 494526 , 504589 , 506154 , 516498 , 517807 , 524657 , 527626 , 528409 , 537720 , 537728 , 541769 , 544448 , 545387 , 546858 , 548583 , 555043 , 557843 , 557845 , 557847 , 557848 , 557853 , 564583 , 564588 , 565088 , 565089 , 565090 , 568139 , 568140 , 568142 , 568144 , 572031 , 576117 , 577236 , 577519 , 580153 , 580876 , 584128 , 591660 , 593775 , 597756 , 598090 , 598355 , 600370 , 600442 , 600557 , 605391 , 610962 , 612821 , 625182 , 637460 , 641705 , 642735 , 656281 , 677815 , 680898 , 681686 , 688333 , 718718 , 725562 , 745176 , 745335 , 752714 , 754977 , 758431 , 779936 , 807903 , 822300 );
Copy
5
116.79 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
385386
419892
429176
431097
463853
464157
469881
477209
494526
504589
506154
516498
517807
524657
527626
528409
537720
537728
541769
544448
545387
546858
548583
555043
557843
557845
557847
557848
557853
564583
564588
565088
565089
565090
568139
568140
568142
568144
572031
576117
577236
577519
580153
580876
584128
591660
593775
597756
598090
598355
600370
600442
600557
605391
610962
612821
625182
637460
641705
642735
656281
677815
680898
681686
688333
718718
725562
745176
745335
752714
754977
758431
779936
807903
822300
]
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 (385386 , 419892 , 429176 , 431097 , 463853 , 464157 , 469881 , 477209 , 494526 , 504589 , 506154 , 516498 , 517807 , 524657 , 527626 , 528409 , 537720 , 537728 , 541769 , 544448 , 545387 , 546858 , 548583 , 555043 , 557843 , 557845 , 557847 , 557848 , 557853 , 564583 , 564588 , 565088 , 565089 , 565090 , 568139 , 568140 , 568142 , 568144 , 572031 , 576117 , 577236 , 577519 , 580153 , 580876 , 584128 , 591660 , 593775 , 597756 , 598090 , 598355 , 600370 , 600442 , 600557 , 605391 , 610962 , 612821 , 625182 , 637460 , 641705 , 642735 , 656281 , 677815 , 680898 , 681686 , 688333 , 718718 , 725562 , 745176 , 745335 , 752714 , 754977 , 758431 , 779936 , 807903 , 822300 );
Copy