3
8.84 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
497126
713115
741217
611024
794427
707441
491633
807853
549031
555619
788117
532192
801243
619656
599773
802311
416240
635878
596961
418161
819122
692720
608155
742330
596983
824783
470990
710540
610490
441047
825508
824689
683330
597865
641226
802062
474989
496148
510902
558314
496146
496124
492182
692712
749064
401099
425611
476513
578465
646880
590923
458910
493908
669276
740479
477555
497225
503859
510233
512067
714349
453162
590418
618460
625798
517808
484283
426551
516890
]
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 (497126 , 713115 , 741217 , 611024 , 794427 , 707441 , 491633 , 807853 , 549031 , 555619 , 788117 , 532192 , 801243 , 619656 , 599773 , 802311 , 416240 , 635878 , 596961 , 418161 , 819122 , 692720 , 608155 , 742330 , 596983 , 824783 , 470990 , 710540 , 610490 , 441047 , 825508 , 824689 , 683330 , 597865 , 641226 , 802062 , 474989 , 496148 , 510902 , 558314 , 496146 , 496124 , 492182 , 692712 , 749064 , 401099 , 425611 , 476513 , 578465 , 646880 , 590923 , 458910 , 493908 , 669276 , 740479 , 477555 , 497225 , 503859 , 510233 , 512067 , 714349 , 453162 , 590418 , 618460 , 625798 , 517808 , 484283 , 426551 , 516890 );
Copy
4
2.42 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
401099
416240
418161
425611
426551
441047
453162
458910
470990
474989
476513
477555
484283
491633
492182
493908
496124
496146
496148
497126
497225
503859
510233
510902
512067
516890
517808
532192
549031
555619
558314
578465
590418
590923
596961
596983
597865
599773
608155
610490
611024
618460
619656
625798
635878
641226
646880
669276
683330
692712
692720
707441
710540
713115
740479
741217
742330
749064
788117
794427
801243
802062
802311
807853
819122
824689
824783
825508
]
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 (401099 , 416240 , 418161 , 425611 , 426551 , 441047 , 453162 , 458910 , 470990 , 474989 , 476513 , 477555 , 484283 , 491633 , 492182 , 493908 , 496124 , 496146 , 496148 , 497126 , 497225 , 503859 , 510233 , 510902 , 512067 , 516890 , 517808 , 532192 , 549031 , 555619 , 558314 , 578465 , 590418 , 590923 , 596961 , 596983 , 597865 , 599773 , 608155 , 610490 , 611024 , 618460 , 619656 , 625798 , 635878 , 641226 , 646880 , 669276 , 683330 , 692712 , 692720 , 707441 , 710540 , 713115 , 740479 , 741217 , 742330 , 749064 , 788117 , 794427 , 801243 , 802062 , 802311 , 807853 , 819122 , 824689 , 824783 , 825508 );
Copy
5
118.26 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
401099
416240
418161
425611
426551
441047
453162
458910
470990
474989
476513
477555
484283
491633
492182
493908
496124
496146
496148
497126
497225
503859
510233
510902
512067
516890
517808
532192
549031
555619
558314
578465
590418
590923
596961
596983
597865
599773
608155
610490
611024
618460
619656
625798
635878
641226
646880
669276
683330
692712
692720
707441
710540
713115
740479
741217
742330
749064
788117
794427
801243
802062
802311
807853
819122
824689
824783
825508
]
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 (401099 , 416240 , 418161 , 425611 , 426551 , 441047 , 453162 , 458910 , 470990 , 474989 , 476513 , 477555 , 484283 , 491633 , 492182 , 493908 , 496124 , 496146 , 496148 , 497126 , 497225 , 503859 , 510233 , 510902 , 512067 , 516890 , 517808 , 532192 , 549031 , 555619 , 558314 , 578465 , 590418 , 590923 , 596961 , 596983 , 597865 , 599773 , 608155 , 610490 , 611024 , 618460 , 619656 , 625798 , 635878 , 641226 , 646880 , 669276 , 683330 , 692712 , 692720 , 707441 , 710540 , 713115 , 740479 , 741217 , 742330 , 749064 , 788117 , 794427 , 801243 , 802062 , 802311 , 807853 , 819122 , 824689 , 824783 , 825508 );
Copy