3
12.87 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
562992
775569
734227
772626
525168
767694
793457
694707
817028
742007
791637
616585
755485
446286
469399
590932
804675
528826
654305
767459
462471
795539
736146
813494
612089
508784
450847
578554
812645
728487
767769
795909
400872
422264
666008
578606
606908
779591
809521
816958
801953
593059
536594
464478
551086
704914
524538
497372
814861
593876
590327
16851
523142
708905
791943
558458
594126
500463
483569
693338
555325
493402
574047
569994
397918
567051
526718
523892
630546
676428
532419
502468
666850
568062
536400
]
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 (562992 , 775569 , 734227 , 772626 , 525168 , 767694 , 793457 , 694707 , 817028 , 742007 , 791637 , 616585 , 755485 , 446286 , 469399 , 590932 , 804675 , 528826 , 654305 , 767459 , 462471 , 795539 , 736146 , 813494 , 612089 , 508784 , 450847 , 578554 , 812645 , 728487 , 767769 , 795909 , 400872 , 422264 , 666008 , 578606 , 606908 , 779591 , 809521 , 816958 , 801953 , 593059 , 536594 , 464478 , 551086 , 704914 , 524538 , 497372 , 814861 , 593876 , 590327 , 16851 , 523142 , 708905 , 791943 , 558458 , 594126 , 500463 , 483569 , 693338 , 555325 , 493402 , 574047 , 569994 , 397918 , 567051 , 526718 , 523892 , 630546 , 676428 , 532419 , 502468 , 666850 , 568062 , 536400 );
Copy
4
3.12 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
16851
397918
400872
422264
446286
450847
462471
464478
469399
483569
493402
497372
500463
502468
508784
523142
523892
524538
525168
526718
528826
532419
536400
536594
551086
555325
558458
562992
567051
568062
569994
574047
578554
578606
590327
590932
593059
593876
594126
606908
612089
616585
630546
654305
666008
666850
676428
693338
694707
704914
708905
728487
734227
736146
742007
755485
767459
767694
767769
772626
775569
779591
791637
791943
793457
795539
795909
801953
804675
809521
812645
813494
814861
816958
817028
]
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 (16851 , 397918 , 400872 , 422264 , 446286 , 450847 , 462471 , 464478 , 469399 , 483569 , 493402 , 497372 , 500463 , 502468 , 508784 , 523142 , 523892 , 524538 , 525168 , 526718 , 528826 , 532419 , 536400 , 536594 , 551086 , 555325 , 558458 , 562992 , 567051 , 568062 , 569994 , 574047 , 578554 , 578606 , 590327 , 590932 , 593059 , 593876 , 594126 , 606908 , 612089 , 616585 , 630546 , 654305 , 666008 , 666850 , 676428 , 693338 , 694707 , 704914 , 708905 , 728487 , 734227 , 736146 , 742007 , 755485 , 767459 , 767694 , 767769 , 772626 , 775569 , 779591 , 791637 , 791943 , 793457 , 795539 , 795909 , 801953 , 804675 , 809521 , 812645 , 813494 , 814861 , 816958 , 817028 );
Copy
5
94.37 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
16851
397918
400872
422264
446286
450847
462471
464478
469399
483569
493402
497372
500463
502468
508784
523142
523892
524538
525168
526718
528826
532419
536400
536594
551086
555325
558458
562992
567051
568062
569994
574047
578554
578606
590327
590932
593059
593876
594126
606908
612089
616585
630546
654305
666008
666850
676428
693338
694707
704914
708905
728487
734227
736146
742007
755485
767459
767694
767769
772626
775569
779591
791637
791943
793457
795539
795909
801953
804675
809521
812645
813494
814861
816958
817028
]
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 (16851 , 397918 , 400872 , 422264 , 446286 , 450847 , 462471 , 464478 , 469399 , 483569 , 493402 , 497372 , 500463 , 502468 , 508784 , 523142 , 523892 , 524538 , 525168 , 526718 , 528826 , 532419 , 536400 , 536594 , 551086 , 555325 , 558458 , 562992 , 567051 , 568062 , 569994 , 574047 , 578554 , 578606 , 590327 , 590932 , 593059 , 593876 , 594126 , 606908 , 612089 , 616585 , 630546 , 654305 , 666008 , 666850 , 676428 , 693338 , 694707 , 704914 , 708905 , 728487 , 734227 , 736146 , 742007 , 755485 , 767459 , 767694 , 767769 , 772626 , 775569 , 779591 , 791637 , 791943 , 793457 , 795539 , 795909 , 801953 , 804675 , 809521 , 812645 , 813494 , 814861 , 816958 , 817028 );
Copy