4
9.91 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
542695
567345
734388
736440
715387
583502
780597
780637
766372
705224
727352
780655
461124
802462
733246
678943
678967
719427
544972
566657
448148
509677
512668
508754
534855
618821
548002
620785
483832
567335
576041
566244
649254
618954
620711
584222
766570
813020
609682
487206
524235
506775
510683
577130
592369
601962
761145
488196
533522
558792
635225
811964
811955
749488
460697
800410
567346
615394
458912
459389
649525
450813
456169
605007
734385
532644
678973
474621
]
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 (542695 , 567345 , 734388 , 736440 , 715387 , 583502 , 780597 , 780637 , 766372 , 705224 , 727352 , 780655 , 461124 , 802462 , 733246 , 678943 , 678967 , 719427 , 544972 , 566657 , 448148 , 509677 , 512668 , 508754 , 534855 , 618821 , 548002 , 620785 , 483832 , 567335 , 576041 , 566244 , 649254 , 618954 , 620711 , 584222 , 766570 , 813020 , 609682 , 487206 , 524235 , 506775 , 510683 , 577130 , 592369 , 601962 , 761145 , 488196 , 533522 , 558792 , 635225 , 811964 , 811955 , 749488 , 460697 , 800410 , 567346 , 615394 , 458912 , 459389 , 649525 , 450813 , 456169 , 605007 , 734385 , 532644 , 678973 , 474621 );
Copy
5
2.26 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
448148
450813
456169
458912
459389
460697
461124
474621
483832
487206
488196
506775
508754
509677
510683
512668
524235
532644
533522
534855
542695
544972
548002
558792
566244
566657
567335
567345
567346
576041
577130
583502
584222
592369
601962
605007
609682
615394
618821
618954
620711
620785
635225
649254
649525
678943
678967
678973
705224
715387
719427
727352
733246
734385
734388
736440
749488
761145
766372
766570
780597
780637
780655
800410
802462
811955
811964
813020
]
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 (448148 , 450813 , 456169 , 458912 , 459389 , 460697 , 461124 , 474621 , 483832 , 487206 , 488196 , 506775 , 508754 , 509677 , 510683 , 512668 , 524235 , 532644 , 533522 , 534855 , 542695 , 544972 , 548002 , 558792 , 566244 , 566657 , 567335 , 567345 , 567346 , 576041 , 577130 , 583502 , 584222 , 592369 , 601962 , 605007 , 609682 , 615394 , 618821 , 618954 , 620711 , 620785 , 635225 , 649254 , 649525 , 678943 , 678967 , 678973 , 705224 , 715387 , 719427 , 727352 , 733246 , 734385 , 734388 , 736440 , 749488 , 761145 , 766372 , 766570 , 780597 , 780637 , 780655 , 800410 , 802462 , 811955 , 811964 , 813020 );
Copy
6
74.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
448148
450813
456169
458912
459389
460697
461124
474621
483832
487206
488196
506775
508754
509677
510683
512668
524235
532644
533522
534855
542695
544972
548002
558792
566244
566657
567335
567345
567346
576041
577130
583502
584222
592369
601962
605007
609682
615394
618821
618954
620711
620785
635225
649254
649525
678943
678967
678973
705224
715387
719427
727352
733246
734385
734388
736440
749488
761145
766372
766570
780597
780637
780655
800410
802462
811955
811964
813020
]
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 (448148 , 450813 , 456169 , 458912 , 459389 , 460697 , 461124 , 474621 , 483832 , 487206 , 488196 , 506775 , 508754 , 509677 , 510683 , 512668 , 524235 , 532644 , 533522 , 534855 , 542695 , 544972 , 548002 , 558792 , 566244 , 566657 , 567335 , 567345 , 567346 , 576041 , 577130 , 583502 , 584222 , 592369 , 601962 , 605007 , 609682 , 615394 , 618821 , 618954 , 620711 , 620785 , 635225 , 649254 , 649525 , 678943 , 678967 , 678973 , 705224 , 715387 , 719427 , 727352 , 733246 , 734385 , 734388 , 736440 , 749488 , 761145 , 766372 , 766570 , 780597 , 780637 , 780655 , 800410 , 802462 , 811955 , 811964 , 813020 );
Copy