3
12.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
659199
587977
595646
598971
631697
604767
600242
776398
730862
773670
723008
781849
463318
471497
474101
475769
439142
445272
508288
519912
520922
520146
431655
538354
539995
510573
517480
541409
583557
582438
680709
584806
589972
601358
606076
587912
604286
624755
756840
774708
460754
430474
471122
445424
466912
470325
500746
447318
533917
532370
547789
565306
666503
752661
789002
416192
589400
591997
592495
770382
496647
568604
486829
593965
585826
525608
584105
438178
502533
]
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 (659199 , 587977 , 595646 , 598971 , 631697 , 604767 , 600242 , 776398 , 730862 , 773670 , 723008 , 781849 , 463318 , 471497 , 474101 , 475769 , 439142 , 445272 , 508288 , 519912 , 520922 , 520146 , 431655 , 538354 , 539995 , 510573 , 517480 , 541409 , 583557 , 582438 , 680709 , 584806 , 589972 , 601358 , 606076 , 587912 , 604286 , 624755 , 756840 , 774708 , 460754 , 430474 , 471122 , 445424 , 466912 , 470325 , 500746 , 447318 , 533917 , 532370 , 547789 , 565306 , 666503 , 752661 , 789002 , 416192 , 589400 , 591997 , 592495 , 770382 , 496647 , 568604 , 486829 , 593965 , 585826 , 525608 , 584105 , 438178 , 502533 );
Copy
4
2.55 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
416192
430474
431655
438178
439142
445272
445424
447318
460754
463318
466912
470325
471122
471497
474101
475769
486829
496647
500746
502533
508288
510573
517480
519912
520146
520922
525608
532370
533917
538354
539995
541409
547789
565306
568604
582438
583557
584105
584806
585826
587912
587977
589400
589972
591997
592495
593965
595646
598971
600242
601358
604286
604767
606076
624755
631697
659199
666503
680709
723008
730862
752661
756840
770382
773670
774708
776398
781849
789002
]
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 (416192 , 430474 , 431655 , 438178 , 439142 , 445272 , 445424 , 447318 , 460754 , 463318 , 466912 , 470325 , 471122 , 471497 , 474101 , 475769 , 486829 , 496647 , 500746 , 502533 , 508288 , 510573 , 517480 , 519912 , 520146 , 520922 , 525608 , 532370 , 533917 , 538354 , 539995 , 541409 , 547789 , 565306 , 568604 , 582438 , 583557 , 584105 , 584806 , 585826 , 587912 , 587977 , 589400 , 589972 , 591997 , 592495 , 593965 , 595646 , 598971 , 600242 , 601358 , 604286 , 604767 , 606076 , 624755 , 631697 , 659199 , 666503 , 680709 , 723008 , 730862 , 752661 , 756840 , 770382 , 773670 , 774708 , 776398 , 781849 , 789002 );
Copy
5
87.64 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
416192
430474
431655
438178
439142
445272
445424
447318
460754
463318
466912
470325
471122
471497
474101
475769
486829
496647
500746
502533
508288
510573
517480
519912
520146
520922
525608
532370
533917
538354
539995
541409
547789
565306
568604
582438
583557
584105
584806
585826
587912
587977
589400
589972
591997
592495
593965
595646
598971
600242
601358
604286
604767
606076
624755
631697
659199
666503
680709
723008
730862
752661
756840
770382
773670
774708
776398
781849
789002
]
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 (416192 , 430474 , 431655 , 438178 , 439142 , 445272 , 445424 , 447318 , 460754 , 463318 , 466912 , 470325 , 471122 , 471497 , 474101 , 475769 , 486829 , 496647 , 500746 , 502533 , 508288 , 510573 , 517480 , 519912 , 520146 , 520922 , 525608 , 532370 , 533917 , 538354 , 539995 , 541409 , 547789 , 565306 , 568604 , 582438 , 583557 , 584105 , 584806 , 585826 , 587912 , 587977 , 589400 , 589972 , 591997 , 592495 , 593965 , 595646 , 598971 , 600242 , 601358 , 604286 , 604767 , 606076 , 624755 , 631697 , 659199 , 666503 , 680709 , 723008 , 730862 , 752661 , 756840 , 770382 , 773670 , 774708 , 776398 , 781849 , 789002 );
Copy