3
11.13 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
599255
723875
814136
585704
600421
610600
573383
517329
817936
734679
781639
783322
785232
758892
683608
697052
811460
467372
796166
799225
734880
705136
588958
626758
804734
569388
770277
642578
564736
747885
520949
617122
599840
533328
587852
605395
602929
828403
519171
470288
213932
719776
815392
436845
467355
401251
559444
782602
595025
419101
623231
558305
581965
549166
787544
444980
787393
527904
422043
401049
503725
634770
595176
426663
422824
475122
497480
407292
594960
442556
520522
511678
516839
550829
]
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 (599255 , 723875 , 814136 , 585704 , 600421 , 610600 , 573383 , 517329 , 817936 , 734679 , 781639 , 783322 , 785232 , 758892 , 683608 , 697052 , 811460 , 467372 , 796166 , 799225 , 734880 , 705136 , 588958 , 626758 , 804734 , 569388 , 770277 , 642578 , 564736 , 747885 , 520949 , 617122 , 599840 , 533328 , 587852 , 605395 , 602929 , 828403 , 519171 , 470288 , 213932 , 719776 , 815392 , 436845 , 467355 , 401251 , 559444 , 782602 , 595025 , 419101 , 623231 , 558305 , 581965 , 549166 , 787544 , 444980 , 787393 , 527904 , 422043 , 401049 , 503725 , 634770 , 595176 , 426663 , 422824 , 475122 , 497480 , 407292 , 594960 , 442556 , 520522 , 511678 , 516839 , 550829 );
Copy
4
2.61 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
213932
401049
401251
407292
419101
422043
422824
426663
436845
442556
444980
467355
467372
470288
475122
497480
503725
511678
516839
517329
519171
520522
520949
527904
533328
549166
550829
558305
559444
564736
569388
573383
581965
585704
587852
588958
594960
595025
595176
599255
599840
600421
602929
605395
610600
617122
623231
626758
634770
642578
683608
697052
705136
719776
723875
734679
734880
747885
758892
770277
781639
782602
783322
785232
787393
787544
796166
799225
804734
811460
814136
815392
817936
828403
]
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 (213932 , 401049 , 401251 , 407292 , 419101 , 422043 , 422824 , 426663 , 436845 , 442556 , 444980 , 467355 , 467372 , 470288 , 475122 , 497480 , 503725 , 511678 , 516839 , 517329 , 519171 , 520522 , 520949 , 527904 , 533328 , 549166 , 550829 , 558305 , 559444 , 564736 , 569388 , 573383 , 581965 , 585704 , 587852 , 588958 , 594960 , 595025 , 595176 , 599255 , 599840 , 600421 , 602929 , 605395 , 610600 , 617122 , 623231 , 626758 , 634770 , 642578 , 683608 , 697052 , 705136 , 719776 , 723875 , 734679 , 734880 , 747885 , 758892 , 770277 , 781639 , 782602 , 783322 , 785232 , 787393 , 787544 , 796166 , 799225 , 804734 , 811460 , 814136 , 815392 , 817936 , 828403 );
Copy
5
85.29 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
213932
401049
401251
407292
419101
422043
422824
426663
436845
442556
444980
467355
467372
470288
475122
497480
503725
511678
516839
517329
519171
520522
520949
527904
533328
549166
550829
558305
559444
564736
569388
573383
581965
585704
587852
588958
594960
595025
595176
599255
599840
600421
602929
605395
610600
617122
623231
626758
634770
642578
683608
697052
705136
719776
723875
734679
734880
747885
758892
770277
781639
782602
783322
785232
787393
787544
796166
799225
804734
811460
814136
815392
817936
828403
]
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 (213932 , 401049 , 401251 , 407292 , 419101 , 422043 , 422824 , 426663 , 436845 , 442556 , 444980 , 467355 , 467372 , 470288 , 475122 , 497480 , 503725 , 511678 , 516839 , 517329 , 519171 , 520522 , 520949 , 527904 , 533328 , 549166 , 550829 , 558305 , 559444 , 564736 , 569388 , 573383 , 581965 , 585704 , 587852 , 588958 , 594960 , 595025 , 595176 , 599255 , 599840 , 600421 , 602929 , 605395 , 610600 , 617122 , 623231 , 626758 , 634770 , 642578 , 683608 , 697052 , 705136 , 719776 , 723875 , 734679 , 734880 , 747885 , 758892 , 770277 , 781639 , 782602 , 783322 , 785232 , 787393 , 787544 , 796166 , 799225 , 804734 , 811460 , 814136 , 815392 , 817936 , 828403 );
Copy