3
9.51 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
447535
398741
642004
627224
531852
531855
395479
531822
34201
88486
806017
417455
444729
532985
547458
568529
789958
545449
529714
651154
540461
544848
550896
388979
484210
459858
534563
531869
583712
784151
800211
448321
660394
391182
530574
529739
14700
419613
532977
515546
646300
792553
456900
530636
448317
448791
666859
648733
589442
587162
727939
452186
425636
416032
448341
414292
792558
547485
536285
569302
494481
443244
501242
]
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 (447535 , 398741 , 642004 , 627224 , 531852 , 531855 , 395479 , 531822 , 34201 , 88486 , 806017 , 417455 , 444729 , 532985 , 547458 , 568529 , 789958 , 545449 , 529714 , 651154 , 540461 , 544848 , 550896 , 388979 , 484210 , 459858 , 534563 , 531869 , 583712 , 784151 , 800211 , 448321 , 660394 , 391182 , 530574 , 529739 , 14700 , 419613 , 532977 , 515546 , 646300 , 792553 , 456900 , 530636 , 448317 , 448791 , 666859 , 648733 , 589442 , 587162 , 727939 , 452186 , 425636 , 416032 , 448341 , 414292 , 792558 , 547485 , 536285 , 569302 , 494481 , 443244 , 501242 );
Copy
4
2.74 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
14700
34201
88486
388979
391182
395479
398741
414292
416032
417455
419613
425636
443244
444729
447535
448317
448321
448341
448791
452186
456900
459858
484210
494481
501242
515546
529714
529739
530574
530636
531822
531852
531855
531869
532977
532985
534563
536285
540461
544848
545449
547458
547485
550896
568529
569302
583712
587162
589442
627224
642004
646300
648733
651154
660394
666859
727939
784151
789958
792553
792558
800211
806017
]
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 (14700 , 34201 , 88486 , 388979 , 391182 , 395479 , 398741 , 414292 , 416032 , 417455 , 419613 , 425636 , 443244 , 444729 , 447535 , 448317 , 448321 , 448341 , 448791 , 452186 , 456900 , 459858 , 484210 , 494481 , 501242 , 515546 , 529714 , 529739 , 530574 , 530636 , 531822 , 531852 , 531855 , 531869 , 532977 , 532985 , 534563 , 536285 , 540461 , 544848 , 545449 , 547458 , 547485 , 550896 , 568529 , 569302 , 583712 , 587162 , 589442 , 627224 , 642004 , 646300 , 648733 , 651154 , 660394 , 666859 , 727939 , 784151 , 789958 , 792553 , 792558 , 800211 , 806017 );
Copy
5
68.99 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
14700
34201
88486
388979
391182
395479
398741
414292
416032
417455
419613
425636
443244
444729
447535
448317
448321
448341
448791
452186
456900
459858
484210
494481
501242
515546
529714
529739
530574
530636
531822
531852
531855
531869
532977
532985
534563
536285
540461
544848
545449
547458
547485
550896
568529
569302
583712
587162
589442
627224
642004
646300
648733
651154
660394
666859
727939
784151
789958
792553
792558
800211
806017
]
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 (14700 , 34201 , 88486 , 388979 , 391182 , 395479 , 398741 , 414292 , 416032 , 417455 , 419613 , 425636 , 443244 , 444729 , 447535 , 448317 , 448321 , 448341 , 448791 , 452186 , 456900 , 459858 , 484210 , 494481 , 501242 , 515546 , 529714 , 529739 , 530574 , 530636 , 531822 , 531852 , 531855 , 531869 , 532977 , 532985 , 534563 , 536285 , 540461 , 544848 , 545449 , 547458 , 547485 , 550896 , 568529 , 569302 , 583712 , 587162 , 589442 , 627224 , 642004 , 646300 , 648733 , 651154 , 660394 , 666859 , 727939 , 784151 , 789958 , 792553 , 792558 , 800211 , 806017 );
Copy