4
13.33 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
644016
761526
783261
777093
660598
800092
796841
160525
656318
707361
644144
606606
799219
804948
755002
160352
160249
811104
772957
728116
778104
799228
809049
460237
781270
769574
391405
409577
625964
781275
803130
769528
394391
650290
695748
799205
784234
770062
758272
777419
513374
629681
792232
741760
723681
769567
776559
777411
476434
475234
465005
457539
539355
554981
807619
803039
777416
470526
514279
442735
457948
577433
599529
522797
623744
515947
]
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 (644016 , 761526 , 783261 , 777093 , 660598 , 800092 , 796841 , 160525 , 656318 , 707361 , 644144 , 606606 , 799219 , 804948 , 755002 , 160352 , 160249 , 811104 , 772957 , 728116 , 778104 , 799228 , 809049 , 460237 , 781270 , 769574 , 391405 , 409577 , 625964 , 781275 , 803130 , 769528 , 394391 , 650290 , 695748 , 799205 , 784234 , 770062 , 758272 , 777419 , 513374 , 629681 , 792232 , 741760 , 723681 , 769567 , 776559 , 777411 , 476434 , 475234 , 465005 , 457539 , 539355 , 554981 , 807619 , 803039 , 777416 , 470526 , 514279 , 442735 , 457948 , 577433 , 599529 , 522797 , 623744 , 515947 );
Copy
5
2.44 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
160249
160352
160525
391405
394391
409577
442735
457539
457948
460237
465005
470526
475234
476434
513374
514279
515947
522797
539355
554981
577433
599529
606606
623744
625964
629681
644016
644144
650290
656318
660598
695748
707361
723681
728116
741760
755002
758272
761526
769528
769567
770062
772957
776559
777093
777411
777416
777419
778104
781270
781275
783261
784234
792232
796841
799205
799219
799228
800092
803039
803130
804948
807619
809049
811104
]
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 (160249 , 160352 , 160525 , 391405 , 394391 , 409577 , 442735 , 457539 , 457948 , 460237 , 465005 , 470526 , 475234 , 476434 , 513374 , 514279 , 515947 , 522797 , 539355 , 554981 , 577433 , 599529 , 606606 , 623744 , 625964 , 629681 , 644016 , 644144 , 650290 , 656318 , 660598 , 695748 , 707361 , 723681 , 728116 , 741760 , 755002 , 758272 , 761526 , 769528 , 769567 , 770062 , 772957 , 776559 , 777093 , 777411 , 777416 , 777419 , 778104 , 781270 , 781275 , 783261 , 784234 , 792232 , 796841 , 799205 , 799219 , 799228 , 800092 , 803039 , 803130 , 804948 , 807619 , 809049 , 811104 );
Copy
6
93.57 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
160249
160352
160525
391405
394391
409577
442735
457539
457948
460237
465005
470526
475234
476434
513374
514279
515947
522797
539355
554981
577433
599529
606606
623744
625964
629681
644016
644144
650290
656318
660598
695748
707361
723681
728116
741760
755002
758272
761526
769528
769567
770062
772957
776559
777093
777411
777416
777419
778104
781270
781275
783261
784234
792232
796841
799205
799219
799228
800092
803039
803130
804948
807619
809049
811104
]
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 (160249 , 160352 , 160525 , 391405 , 394391 , 409577 , 442735 , 457539 , 457948 , 460237 , 465005 , 470526 , 475234 , 476434 , 513374 , 514279 , 515947 , 522797 , 539355 , 554981 , 577433 , 599529 , 606606 , 623744 , 625964 , 629681 , 644016 , 644144 , 650290 , 656318 , 660598 , 695748 , 707361 , 723681 , 728116 , 741760 , 755002 , 758272 , 761526 , 769528 , 769567 , 770062 , 772957 , 776559 , 777093 , 777411 , 777416 , 777419 , 778104 , 781270 , 781275 , 783261 , 784234 , 792232 , 796841 , 799205 , 799219 , 799228 , 800092 , 803039 , 803130 , 804948 , 807619 , 809049 , 811104 );
Copy