3
10.46 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
772772
404522
409886
413068
408293
397369
457490
425809
388668
803753
610823
476270
532000
389360
733543
724571
625285
754101
768633
758185
714752
554974
761858
741607
796184
795290
629789
444255
551516
745340
801119
740646
549166
532874
793617
428134
488500
447897
513501
805537
805629
548264
436933
521618
490192
546117
580015
764238
434328
528458
503085
680671
428522
586136
776592
467248
431062
448669
528456
442829
472734
479499
407379
416072
452251
448644
499910
556699
569965
517092
512952
565783
]
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 (772772 , 404522 , 409886 , 413068 , 408293 , 397369 , 457490 , 425809 , 388668 , 803753 , 610823 , 476270 , 532000 , 389360 , 733543 , 724571 , 625285 , 754101 , 768633 , 758185 , 714752 , 554974 , 761858 , 741607 , 796184 , 795290 , 629789 , 444255 , 551516 , 745340 , 801119 , 740646 , 549166 , 532874 , 793617 , 428134 , 488500 , 447897 , 513501 , 805537 , 805629 , 548264 , 436933 , 521618 , 490192 , 546117 , 580015 , 764238 , 434328 , 528458 , 503085 , 680671 , 428522 , 586136 , 776592 , 467248 , 431062 , 448669 , 528456 , 442829 , 472734 , 479499 , 407379 , 416072 , 452251 , 448644 , 499910 , 556699 , 569965 , 517092 , 512952 , 565783 );
Copy
4
2.60 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
388668
389360
397369
404522
407379
408293
409886
413068
416072
425809
428134
428522
431062
434328
436933
442829
444255
447897
448644
448669
452251
457490
467248
472734
476270
479499
488500
490192
499910
503085
512952
513501
517092
521618
528456
528458
532000
532874
546117
548264
549166
551516
554974
556699
565783
569965
580015
586136
610823
625285
629789
680671
714752
724571
733543
740646
741607
745340
754101
758185
761858
764238
768633
772772
776592
793617
795290
796184
801119
803753
805537
805629
]
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 (388668 , 389360 , 397369 , 404522 , 407379 , 408293 , 409886 , 413068 , 416072 , 425809 , 428134 , 428522 , 431062 , 434328 , 436933 , 442829 , 444255 , 447897 , 448644 , 448669 , 452251 , 457490 , 467248 , 472734 , 476270 , 479499 , 488500 , 490192 , 499910 , 503085 , 512952 , 513501 , 517092 , 521618 , 528456 , 528458 , 532000 , 532874 , 546117 , 548264 , 549166 , 551516 , 554974 , 556699 , 565783 , 569965 , 580015 , 586136 , 610823 , 625285 , 629789 , 680671 , 714752 , 724571 , 733543 , 740646 , 741607 , 745340 , 754101 , 758185 , 761858 , 764238 , 768633 , 772772 , 776592 , 793617 , 795290 , 796184 , 801119 , 803753 , 805537 , 805629 );
Copy
5
92.46 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
388668
389360
397369
404522
407379
408293
409886
413068
416072
425809
428134
428522
431062
434328
436933
442829
444255
447897
448644
448669
452251
457490
467248
472734
476270
479499
488500
490192
499910
503085
512952
513501
517092
521618
528456
528458
532000
532874
546117
548264
549166
551516
554974
556699
565783
569965
580015
586136
610823
625285
629789
680671
714752
724571
733543
740646
741607
745340
754101
758185
761858
764238
768633
772772
776592
793617
795290
796184
801119
803753
805537
805629
]
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 (388668 , 389360 , 397369 , 404522 , 407379 , 408293 , 409886 , 413068 , 416072 , 425809 , 428134 , 428522 , 431062 , 434328 , 436933 , 442829 , 444255 , 447897 , 448644 , 448669 , 452251 , 457490 , 467248 , 472734 , 476270 , 479499 , 488500 , 490192 , 499910 , 503085 , 512952 , 513501 , 517092 , 521618 , 528456 , 528458 , 532000 , 532874 , 546117 , 548264 , 549166 , 551516 , 554974 , 556699 , 565783 , 569965 , 580015 , 586136 , 610823 , 625285 , 629789 , 680671 , 714752 , 724571 , 733543 , 740646 , 741607 , 745340 , 754101 , 758185 , 761858 , 764238 , 768633 , 772772 , 776592 , 793617 , 795290 , 796184 , 801119 , 803753 , 805537 , 805629 );
Copy