3
13.53 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
555636
638440
537712
571179
724144
736845
535646
709429
733249
771282
802219
471063
696428
799889
564185
743955
734973
522006
694104
554610
622225
795838
786942
732486
809580
561901
576084
798018
740617
623493
701302
470753
543638
581334
546742
632249
774200
809317
436791
471331
453475
522820
528837
474237
450881
512341
430581
460872
463853
473511
494745
603395
798677
473940
477813
513722
517868
519953
491395
558177
568035
639253
756628
606801
443779
475807
484629
474639
478968
642660
428854
581898
639741
]
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 (555636 , 638440 , 537712 , 571179 , 724144 , 736845 , 535646 , 709429 , 733249 , 771282 , 802219 , 471063 , 696428 , 799889 , 564185 , 743955 , 734973 , 522006 , 694104 , 554610 , 622225 , 795838 , 786942 , 732486 , 809580 , 561901 , 576084 , 798018 , 740617 , 623493 , 701302 , 470753 , 543638 , 581334 , 546742 , 632249 , 774200 , 809317 , 436791 , 471331 , 453475 , 522820 , 528837 , 474237 , 450881 , 512341 , 430581 , 460872 , 463853 , 473511 , 494745 , 603395 , 798677 , 473940 , 477813 , 513722 , 517868 , 519953 , 491395 , 558177 , 568035 , 639253 , 756628 , 606801 , 443779 , 475807 , 484629 , 474639 , 478968 , 642660 , 428854 , 581898 , 639741 );
Copy
4
2.39 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
428854
430581
436791
443779
450881
453475
460872
463853
470753
471063
471331
473511
473940
474237
474639
475807
477813
478968
484629
491395
494745
512341
513722
517868
519953
522006
522820
528837
535646
537712
543638
546742
554610
555636
558177
561901
564185
568035
571179
576084
581334
581898
603395
606801
622225
623493
632249
638440
639253
639741
642660
694104
696428
701302
709429
724144
732486
733249
734973
736845
740617
743955
756628
771282
774200
786942
795838
798018
798677
799889
802219
809317
809580
]
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 (428854 , 430581 , 436791 , 443779 , 450881 , 453475 , 460872 , 463853 , 470753 , 471063 , 471331 , 473511 , 473940 , 474237 , 474639 , 475807 , 477813 , 478968 , 484629 , 491395 , 494745 , 512341 , 513722 , 517868 , 519953 , 522006 , 522820 , 528837 , 535646 , 537712 , 543638 , 546742 , 554610 , 555636 , 558177 , 561901 , 564185 , 568035 , 571179 , 576084 , 581334 , 581898 , 603395 , 606801 , 622225 , 623493 , 632249 , 638440 , 639253 , 639741 , 642660 , 694104 , 696428 , 701302 , 709429 , 724144 , 732486 , 733249 , 734973 , 736845 , 740617 , 743955 , 756628 , 771282 , 774200 , 786942 , 795838 , 798018 , 798677 , 799889 , 802219 , 809317 , 809580 );
Copy
5
106.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
428854
430581
436791
443779
450881
453475
460872
463853
470753
471063
471331
473511
473940
474237
474639
475807
477813
478968
484629
491395
494745
512341
513722
517868
519953
522006
522820
528837
535646
537712
543638
546742
554610
555636
558177
561901
564185
568035
571179
576084
581334
581898
603395
606801
622225
623493
632249
638440
639253
639741
642660
694104
696428
701302
709429
724144
732486
733249
734973
736845
740617
743955
756628
771282
774200
786942
795838
798018
798677
799889
802219
809317
809580
]
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 (428854 , 430581 , 436791 , 443779 , 450881 , 453475 , 460872 , 463853 , 470753 , 471063 , 471331 , 473511 , 473940 , 474237 , 474639 , 475807 , 477813 , 478968 , 484629 , 491395 , 494745 , 512341 , 513722 , 517868 , 519953 , 522006 , 522820 , 528837 , 535646 , 537712 , 543638 , 546742 , 554610 , 555636 , 558177 , 561901 , 564185 , 568035 , 571179 , 576084 , 581334 , 581898 , 603395 , 606801 , 622225 , 623493 , 632249 , 638440 , 639253 , 639741 , 642660 , 694104 , 696428 , 701302 , 709429 , 724144 , 732486 , 733249 , 734973 , 736845 , 740617 , 743955 , 756628 , 771282 , 774200 , 786942 , 795838 , 798018 , 798677 , 799889 , 802219 , 809317 , 809580 );
Copy