3
8.72 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
784518
497212
615478
762964
783805
794992
509967
808280
815469
772797
811446
558364
705141
761673
501869
780318
824894
795130
727007
88549
402521
789782
606677
812027
657735
763279
790626
424279
503751
790083
459642
511610
692832
704206
636919
575127
520515
519720
520978
794788
751035
811440
465817
518372
599104
453982
497066
558026
438040
526602
535520
447865
459865
554001
478293
382888
520491
509728
516615
455276
561758
623412
438800
514357
563635
569613
518241
]
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 (784518 , 497212 , 615478 , 762964 , 783805 , 794992 , 509967 , 808280 , 815469 , 772797 , 811446 , 558364 , 705141 , 761673 , 501869 , 780318 , 824894 , 795130 , 727007 , 88549 , 402521 , 789782 , 606677 , 812027 , 657735 , 763279 , 790626 , 424279 , 503751 , 790083 , 459642 , 511610 , 692832 , 704206 , 636919 , 575127 , 520515 , 519720 , 520978 , 794788 , 751035 , 811440 , 465817 , 518372 , 599104 , 453982 , 497066 , 558026 , 438040 , 526602 , 535520 , 447865 , 459865 , 554001 , 478293 , 382888 , 520491 , 509728 , 516615 , 455276 , 561758 , 623412 , 438800 , 514357 , 563635 , 569613 , 518241 );
Copy
4
2.60 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
88549
382888
402521
424279
438040
438800
447865
453982
455276
459642
459865
465817
478293
497066
497212
501869
503751
509728
509967
511610
514357
516615
518241
518372
519720
520491
520515
520978
526602
535520
554001
558026
558364
561758
563635
569613
575127
599104
606677
615478
623412
636919
657735
692832
704206
705141
727007
751035
761673
762964
763279
772797
780318
783805
784518
789782
790083
790626
794788
794992
795130
808280
811440
811446
812027
815469
824894
]
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 (88549 , 382888 , 402521 , 424279 , 438040 , 438800 , 447865 , 453982 , 455276 , 459642 , 459865 , 465817 , 478293 , 497066 , 497212 , 501869 , 503751 , 509728 , 509967 , 511610 , 514357 , 516615 , 518241 , 518372 , 519720 , 520491 , 520515 , 520978 , 526602 , 535520 , 554001 , 558026 , 558364 , 561758 , 563635 , 569613 , 575127 , 599104 , 606677 , 615478 , 623412 , 636919 , 657735 , 692832 , 704206 , 705141 , 727007 , 751035 , 761673 , 762964 , 763279 , 772797 , 780318 , 783805 , 784518 , 789782 , 790083 , 790626 , 794788 , 794992 , 795130 , 808280 , 811440 , 811446 , 812027 , 815469 , 824894 );
Copy
5
76.50 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
88549
382888
402521
424279
438040
438800
447865
453982
455276
459642
459865
465817
478293
497066
497212
501869
503751
509728
509967
511610
514357
516615
518241
518372
519720
520491
520515
520978
526602
535520
554001
558026
558364
561758
563635
569613
575127
599104
606677
615478
623412
636919
657735
692832
704206
705141
727007
751035
761673
762964
763279
772797
780318
783805
784518
789782
790083
790626
794788
794992
795130
808280
811440
811446
812027
815469
824894
]
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 (88549 , 382888 , 402521 , 424279 , 438040 , 438800 , 447865 , 453982 , 455276 , 459642 , 459865 , 465817 , 478293 , 497066 , 497212 , 501869 , 503751 , 509728 , 509967 , 511610 , 514357 , 516615 , 518241 , 518372 , 519720 , 520491 , 520515 , 520978 , 526602 , 535520 , 554001 , 558026 , 558364 , 561758 , 563635 , 569613 , 575127 , 599104 , 606677 , 615478 , 623412 , 636919 , 657735 , 692832 , 704206 , 705141 , 727007 , 751035 , 761673 , 762964 , 763279 , 772797 , 780318 , 783805 , 784518 , 789782 , 790083 , 790626 , 794788 , 794992 , 795130 , 808280 , 811440 , 811446 , 812027 , 815469 , 824894 );
Copy