3
12.21 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
673880
679306
504168
825794
819941
420738
476419
824426
631220
619042
687833
685516
393243
397683
616714
730031
715409
733651
663838
438276
469813
707915
503771
571646
777206
421807
616699
546435
434573
545993
614837
475542
573970
573078
599504
441397
481851
506784
521107
573017
499233
478264
476415
534172
474942
398680
573959
573817
573961
394240
538235
506782
655591
548754
601471
573644
622761
513476
522284
476420
504137
516429
565273
504161
641126
589450
605840
]
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 (673880 , 679306 , 504168 , 825794 , 819941 , 420738 , 476419 , 824426 , 631220 , 619042 , 687833 , 685516 , 393243 , 397683 , 616714 , 730031 , 715409 , 733651 , 663838 , 438276 , 469813 , 707915 , 503771 , 571646 , 777206 , 421807 , 616699 , 546435 , 434573 , 545993 , 614837 , 475542 , 573970 , 573078 , 599504 , 441397 , 481851 , 506784 , 521107 , 573017 , 499233 , 478264 , 476415 , 534172 , 474942 , 398680 , 573959 , 573817 , 573961 , 394240 , 538235 , 506782 , 655591 , 548754 , 601471 , 573644 , 622761 , 513476 , 522284 , 476420 , 504137 , 516429 , 565273 , 504161 , 641126 , 589450 , 605840 );
Copy
4
2.94 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
393243
394240
397683
398680
420738
421807
434573
438276
441397
469813
474942
475542
476415
476419
476420
478264
481851
499233
503771
504137
504161
504168
506782
506784
516429
521107
522284
534172
538235
545993
546435
548754
565273
571646
573017
573078
573644
573817
573959
573961
573970
589450
599504
601471
605840
614837
616699
616714
619042
622761
631220
641126
655591
663838
673880
679306
685516
687833
707915
715409
730031
733651
777206
819941
824426
825794
]
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 (393243 , 394240 , 397683 , 398680 , 420738 , 421807 , 434573 , 438276 , 441397 , 469813 , 474942 , 475542 , 476415 , 476419 , 476420 , 478264 , 481851 , 499233 , 503771 , 504137 , 504161 , 504168 , 506782 , 506784 , 516429 , 521107 , 522284 , 534172 , 538235 , 545993 , 546435 , 548754 , 565273 , 571646 , 573017 , 573078 , 573644 , 573817 , 573959 , 573961 , 573970 , 589450 , 599504 , 601471 , 605840 , 614837 , 616699 , 616714 , 619042 , 622761 , 631220 , 641126 , 655591 , 663838 , 673880 , 679306 , 685516 , 687833 , 707915 , 715409 , 730031 , 733651 , 777206 , 819941 , 824426 , 825794 );
Copy
5
107.55 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
393243
394240
397683
398680
420738
421807
434573
438276
441397
469813
474942
475542
476415
476419
476420
478264
481851
499233
503771
504137
504161
504168
506782
506784
516429
521107
522284
534172
538235
545993
546435
548754
565273
571646
573017
573078
573644
573817
573959
573961
573970
589450
599504
601471
605840
614837
616699
616714
619042
622761
631220
641126
655591
663838
673880
679306
685516
687833
707915
715409
730031
733651
777206
819941
824426
825794
]
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 (393243 , 394240 , 397683 , 398680 , 420738 , 421807 , 434573 , 438276 , 441397 , 469813 , 474942 , 475542 , 476415 , 476419 , 476420 , 478264 , 481851 , 499233 , 503771 , 504137 , 504161 , 504168 , 506782 , 506784 , 516429 , 521107 , 522284 , 534172 , 538235 , 545993 , 546435 , 548754 , 565273 , 571646 , 573017 , 573078 , 573644 , 573817 , 573959 , 573961 , 573970 , 589450 , 599504 , 601471 , 605840 , 614837 , 616699 , 616714 , 619042 , 622761 , 631220 , 641126 , 655591 , 663838 , 673880 , 679306 , 685516 , 687833 , 707915 , 715409 , 730031 , 733651 , 777206 , 819941 , 824426 , 825794 );
Copy