3
11.06 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
817408
786886
784926
824486
699662
810489
819928
782632
792513
781665
594630
782146
770549
739928
547898
609578
763977
827103
608780
467484
676469
622803
802807
811890
785369
799775
797817
729836
556728
388995
814351
817010
523716
693246
625878
557118
531428
678954
611507
770896
490270
521977
504271
383748
627660
603251
491724
442678
570840
565316
451428
508308
442835
564481
621362
508735
518617
430625
454975
492322
482536
579205
467476
492323
518430
530513
569421
564042
]
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 (817408 , 786886 , 784926 , 824486 , 699662 , 810489 , 819928 , 782632 , 792513 , 781665 , 594630 , 782146 , 770549 , 739928 , 547898 , 609578 , 763977 , 827103 , 608780 , 467484 , 676469 , 622803 , 802807 , 811890 , 785369 , 799775 , 797817 , 729836 , 556728 , 388995 , 814351 , 817010 , 523716 , 693246 , 625878 , 557118 , 531428 , 678954 , 611507 , 770896 , 490270 , 521977 , 504271 , 383748 , 627660 , 603251 , 491724 , 442678 , 570840 , 565316 , 451428 , 508308 , 442835 , 564481 , 621362 , 508735 , 518617 , 430625 , 454975 , 492322 , 482536 , 579205 , 467476 , 492323 , 518430 , 530513 , 569421 , 564042 );
Copy
4
2.49 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
383748
388995
430625
442678
442835
451428
454975
467476
467484
482536
490270
491724
492322
492323
504271
508308
508735
518430
518617
521977
523716
530513
531428
547898
556728
557118
564042
564481
565316
569421
570840
579205
594630
603251
608780
609578
611507
621362
622803
625878
627660
676469
678954
693246
699662
729836
739928
763977
770549
770896
781665
782146
782632
784926
785369
786886
792513
797817
799775
802807
810489
811890
814351
817010
817408
819928
824486
827103
]
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 (383748 , 388995 , 430625 , 442678 , 442835 , 451428 , 454975 , 467476 , 467484 , 482536 , 490270 , 491724 , 492322 , 492323 , 504271 , 508308 , 508735 , 518430 , 518617 , 521977 , 523716 , 530513 , 531428 , 547898 , 556728 , 557118 , 564042 , 564481 , 565316 , 569421 , 570840 , 579205 , 594630 , 603251 , 608780 , 609578 , 611507 , 621362 , 622803 , 625878 , 627660 , 676469 , 678954 , 693246 , 699662 , 729836 , 739928 , 763977 , 770549 , 770896 , 781665 , 782146 , 782632 , 784926 , 785369 , 786886 , 792513 , 797817 , 799775 , 802807 , 810489 , 811890 , 814351 , 817010 , 817408 , 819928 , 824486 , 827103 );
Copy
5
85.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
383748
388995
430625
442678
442835
451428
454975
467476
467484
482536
490270
491724
492322
492323
504271
508308
508735
518430
518617
521977
523716
530513
531428
547898
556728
557118
564042
564481
565316
569421
570840
579205
594630
603251
608780
609578
611507
621362
622803
625878
627660
676469
678954
693246
699662
729836
739928
763977
770549
770896
781665
782146
782632
784926
785369
786886
792513
797817
799775
802807
810489
811890
814351
817010
817408
819928
824486
827103
]
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 (383748 , 388995 , 430625 , 442678 , 442835 , 451428 , 454975 , 467476 , 467484 , 482536 , 490270 , 491724 , 492322 , 492323 , 504271 , 508308 , 508735 , 518430 , 518617 , 521977 , 523716 , 530513 , 531428 , 547898 , 556728 , 557118 , 564042 , 564481 , 565316 , 569421 , 570840 , 579205 , 594630 , 603251 , 608780 , 609578 , 611507 , 621362 , 622803 , 625878 , 627660 , 676469 , 678954 , 693246 , 699662 , 729836 , 739928 , 763977 , 770549 , 770896 , 781665 , 782146 , 782632 , 784926 , 785369 , 786886 , 792513 , 797817 , 799775 , 802807 , 810489 , 811890 , 814351 , 817010 , 817408 , 819928 , 824486 , 827103 );
Copy