3
8.38 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
544905
802907
537322
786385
598463
710518
757064
741226
533402
666685
669867
561520
601225
639231
643988
742690
669874
667439
668679
701708
602247
767436
767439
547408
665094
714126
714806
736241
770273
650516
803819
745964
769616
774574
807861
585052
537324
547763
694312
556869
615082
755496
588192
742411
517398
679679
585397
622106
744924
518544
568216
740694
750473
499735
529914
577679
578705
632734
601243
757078
811993
547790
664556
590730
466960
511492
553302
609784
]
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 (544905 , 802907 , 537322 , 786385 , 598463 , 710518 , 757064 , 741226 , 533402 , 666685 , 669867 , 561520 , 601225 , 639231 , 643988 , 742690 , 669874 , 667439 , 668679 , 701708 , 602247 , 767436 , 767439 , 547408 , 665094 , 714126 , 714806 , 736241 , 770273 , 650516 , 803819 , 745964 , 769616 , 774574 , 807861 , 585052 , 537324 , 547763 , 694312 , 556869 , 615082 , 755496 , 588192 , 742411 , 517398 , 679679 , 585397 , 622106 , 744924 , 518544 , 568216 , 740694 , 750473 , 499735 , 529914 , 577679 , 578705 , 632734 , 601243 , 757078 , 811993 , 547790 , 664556 , 590730 , 466960 , 511492 , 553302 , 609784 );
Copy
4
2.18 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
466960
499735
511492
517398
518544
529914
533402
537322
537324
544905
547408
547763
547790
553302
556869
561520
568216
577679
578705
585052
585397
588192
590730
598463
601225
601243
602247
609784
615082
622106
632734
639231
643988
650516
664556
665094
666685
667439
668679
669867
669874
679679
694312
701708
710518
714126
714806
736241
740694
741226
742411
742690
744924
745964
750473
755496
757064
757078
767436
767439
769616
770273
774574
786385
802907
803819
807861
811993
]
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 (466960 , 499735 , 511492 , 517398 , 518544 , 529914 , 533402 , 537322 , 537324 , 544905 , 547408 , 547763 , 547790 , 553302 , 556869 , 561520 , 568216 , 577679 , 578705 , 585052 , 585397 , 588192 , 590730 , 598463 , 601225 , 601243 , 602247 , 609784 , 615082 , 622106 , 632734 , 639231 , 643988 , 650516 , 664556 , 665094 , 666685 , 667439 , 668679 , 669867 , 669874 , 679679 , 694312 , 701708 , 710518 , 714126 , 714806 , 736241 , 740694 , 741226 , 742411 , 742690 , 744924 , 745964 , 750473 , 755496 , 757064 , 757078 , 767436 , 767439 , 769616 , 770273 , 774574 , 786385 , 802907 , 803819 , 807861 , 811993 );
Copy
5
101.71 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
466960
499735
511492
517398
518544
529914
533402
537322
537324
544905
547408
547763
547790
553302
556869
561520
568216
577679
578705
585052
585397
588192
590730
598463
601225
601243
602247
609784
615082
622106
632734
639231
643988
650516
664556
665094
666685
667439
668679
669867
669874
679679
694312
701708
710518
714126
714806
736241
740694
741226
742411
742690
744924
745964
750473
755496
757064
757078
767436
767439
769616
770273
774574
786385
802907
803819
807861
811993
]
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 (466960 , 499735 , 511492 , 517398 , 518544 , 529914 , 533402 , 537322 , 537324 , 544905 , 547408 , 547763 , 547790 , 553302 , 556869 , 561520 , 568216 , 577679 , 578705 , 585052 , 585397 , 588192 , 590730 , 598463 , 601225 , 601243 , 602247 , 609784 , 615082 , 622106 , 632734 , 639231 , 643988 , 650516 , 664556 , 665094 , 666685 , 667439 , 668679 , 669867 , 669874 , 679679 , 694312 , 701708 , 710518 , 714126 , 714806 , 736241 , 740694 , 741226 , 742411 , 742690 , 744924 , 745964 , 750473 , 755496 , 757064 , 757078 , 767436 , 767439 , 769616 , 770273 , 774574 , 786385 , 802907 , 803819 , 807861 , 811993 );
Copy