3
13.91 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
443626
459379
476316
532634
506075
571131
664587
584045
617390
423971
527919
426296
466992
465698
590418
458974
582444
407423
398949
415753
419045
485400
519754
523622
566387
550685
545631
584012
577037
592690
599638
585964
802256
781849
478381
458761
489868
476015
492449
527426
530414
517697
518941
575656
582317
696513
554374
562423
446989
470041
450171
517690
468165
428174
453242
459189
511086
509842
502841
571102
447942
472943
491436
]
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 (443626 , 459379 , 476316 , 532634 , 506075 , 571131 , 664587 , 584045 , 617390 , 423971 , 527919 , 426296 , 466992 , 465698 , 590418 , 458974 , 582444 , 407423 , 398949 , 415753 , 419045 , 485400 , 519754 , 523622 , 566387 , 550685 , 545631 , 584012 , 577037 , 592690 , 599638 , 585964 , 802256 , 781849 , 478381 , 458761 , 489868 , 476015 , 492449 , 527426 , 530414 , 517697 , 518941 , 575656 , 582317 , 696513 , 554374 , 562423 , 446989 , 470041 , 450171 , 517690 , 468165 , 428174 , 453242 , 459189 , 511086 , 509842 , 502841 , 571102 , 447942 , 472943 , 491436 );
Copy
4
2.75 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
398949
407423
415753
419045
423971
426296
428174
443626
446989
447942
450171
453242
458761
458974
459189
459379
465698
466992
468165
470041
472943
476015
476316
478381
485400
489868
491436
492449
502841
506075
509842
511086
517690
517697
518941
519754
523622
527426
527919
530414
532634
545631
550685
554374
562423
566387
571102
571131
575656
577037
582317
582444
584012
584045
585964
590418
592690
599638
617390
664587
696513
781849
802256
]
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 (398949 , 407423 , 415753 , 419045 , 423971 , 426296 , 428174 , 443626 , 446989 , 447942 , 450171 , 453242 , 458761 , 458974 , 459189 , 459379 , 465698 , 466992 , 468165 , 470041 , 472943 , 476015 , 476316 , 478381 , 485400 , 489868 , 491436 , 492449 , 502841 , 506075 , 509842 , 511086 , 517690 , 517697 , 518941 , 519754 , 523622 , 527426 , 527919 , 530414 , 532634 , 545631 , 550685 , 554374 , 562423 , 566387 , 571102 , 571131 , 575656 , 577037 , 582317 , 582444 , 584012 , 584045 , 585964 , 590418 , 592690 , 599638 , 617390 , 664587 , 696513 , 781849 , 802256 );
Copy
5
97.78 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
398949
407423
415753
419045
423971
426296
428174
443626
446989
447942
450171
453242
458761
458974
459189
459379
465698
466992
468165
470041
472943
476015
476316
478381
485400
489868
491436
492449
502841
506075
509842
511086
517690
517697
518941
519754
523622
527426
527919
530414
532634
545631
550685
554374
562423
566387
571102
571131
575656
577037
582317
582444
584012
584045
585964
590418
592690
599638
617390
664587
696513
781849
802256
]
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 (398949 , 407423 , 415753 , 419045 , 423971 , 426296 , 428174 , 443626 , 446989 , 447942 , 450171 , 453242 , 458761 , 458974 , 459189 , 459379 , 465698 , 466992 , 468165 , 470041 , 472943 , 476015 , 476316 , 478381 , 485400 , 489868 , 491436 , 492449 , 502841 , 506075 , 509842 , 511086 , 517690 , 517697 , 518941 , 519754 , 523622 , 527426 , 527919 , 530414 , 532634 , 545631 , 550685 , 554374 , 562423 , 566387 , 571102 , 571131 , 575656 , 577037 , 582317 , 582444 , 584012 , 584045 , 585964 , 590418 , 592690 , 599638 , 617390 , 664587 , 696513 , 781849 , 802256 );
Copy