3
12.27 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
527750
722127
780634
721983
828457
744991
516767
649560
811485
415115
683052
536026
780682
810355
187735
382460
532852
824938
605022
809257
385461
604952
445726
468525
584214
740903
715553
721060
191487
397849
402876
14232
407429
536585
460170
714484
606392
742880
485354
569929
266183
411684
456902
515698
600269
811872
409080
390180
485355
529202
387218
423663
425992
482773
488383
531248
600338
601575
775801
531534
460079
527053
576721
648867
600293
811040
471780
500669
445738
537203
580368
444924
524865
446976
478672
]
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 (527750 , 722127 , 780634 , 721983 , 828457 , 744991 , 516767 , 649560 , 811485 , 415115 , 683052 , 536026 , 780682 , 810355 , 187735 , 382460 , 532852 , 824938 , 605022 , 809257 , 385461 , 604952 , 445726 , 468525 , 584214 , 740903 , 715553 , 721060 , 191487 , 397849 , 402876 , 14232 , 407429 , 536585 , 460170 , 714484 , 606392 , 742880 , 485354 , 569929 , 266183 , 411684 , 456902 , 515698 , 600269 , 811872 , 409080 , 390180 , 485355 , 529202 , 387218 , 423663 , 425992 , 482773 , 488383 , 531248 , 600338 , 601575 , 775801 , 531534 , 460079 , 527053 , 576721 , 648867 , 600293 , 811040 , 471780 , 500669 , 445738 , 537203 , 580368 , 444924 , 524865 , 446976 , 478672 );
Copy
4
2.95 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
14232
187735
191487
266183
382460
385461
387218
390180
397849
402876
407429
409080
411684
415115
423663
425992
444924
445726
445738
446976
456902
460079
460170
468525
471780
478672
482773
485354
485355
488383
500669
515698
516767
524865
527053
527750
529202
531248
531534
532852
536026
536585
537203
569929
576721
580368
584214
600269
600293
600338
601575
604952
605022
606392
648867
649560
683052
714484
715553
721060
721983
722127
740903
742880
744991
775801
780634
780682
809257
810355
811040
811485
811872
824938
828457
]
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 (14232 , 187735 , 191487 , 266183 , 382460 , 385461 , 387218 , 390180 , 397849 , 402876 , 407429 , 409080 , 411684 , 415115 , 423663 , 425992 , 444924 , 445726 , 445738 , 446976 , 456902 , 460079 , 460170 , 468525 , 471780 , 478672 , 482773 , 485354 , 485355 , 488383 , 500669 , 515698 , 516767 , 524865 , 527053 , 527750 , 529202 , 531248 , 531534 , 532852 , 536026 , 536585 , 537203 , 569929 , 576721 , 580368 , 584214 , 600269 , 600293 , 600338 , 601575 , 604952 , 605022 , 606392 , 648867 , 649560 , 683052 , 714484 , 715553 , 721060 , 721983 , 722127 , 740903 , 742880 , 744991 , 775801 , 780634 , 780682 , 809257 , 810355 , 811040 , 811485 , 811872 , 824938 , 828457 );
Copy
5
108.76 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
14232
187735
191487
266183
382460
385461
387218
390180
397849
402876
407429
409080
411684
415115
423663
425992
444924
445726
445738
446976
456902
460079
460170
468525
471780
478672
482773
485354
485355
488383
500669
515698
516767
524865
527053
527750
529202
531248
531534
532852
536026
536585
537203
569929
576721
580368
584214
600269
600293
600338
601575
604952
605022
606392
648867
649560
683052
714484
715553
721060
721983
722127
740903
742880
744991
775801
780634
780682
809257
810355
811040
811485
811872
824938
828457
]
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 (14232 , 187735 , 191487 , 266183 , 382460 , 385461 , 387218 , 390180 , 397849 , 402876 , 407429 , 409080 , 411684 , 415115 , 423663 , 425992 , 444924 , 445726 , 445738 , 446976 , 456902 , 460079 , 460170 , 468525 , 471780 , 478672 , 482773 , 485354 , 485355 , 488383 , 500669 , 515698 , 516767 , 524865 , 527053 , 527750 , 529202 , 531248 , 531534 , 532852 , 536026 , 536585 , 537203 , 569929 , 576721 , 580368 , 584214 , 600269 , 600293 , 600338 , 601575 , 604952 , 605022 , 606392 , 648867 , 649560 , 683052 , 714484 , 715553 , 721060 , 721983 , 722127 , 740903 , 742880 , 744991 , 775801 , 780634 , 780682 , 809257 , 810355 , 811040 , 811485 , 811872 , 824938 , 828457 );
Copy