3
13.99 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
425571
680112
641956
634115
634784
744157
793197
813174
550945
800137
662156
731339
600360
667944
693406
790124
639751
428517
782581
465556
778618
542588
511319
431954
462088
484462
647895
595699
542583
542595
601579
634774
642066
599914
637080
466176
545605
537204
647838
647905
651148
666863
672682
641955
633491
597235
635258
631194
639292
647854
599966
639818
639796
639716
639760
599833
599922
647860
647948
676428
545469
599927
641953
601578
628371
630552
634780
529794
529792
545460
545355
642774
633502
641978
630280
]
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 (425571 , 680112 , 641956 , 634115 , 634784 , 744157 , 793197 , 813174 , 550945 , 800137 , 662156 , 731339 , 600360 , 667944 , 693406 , 790124 , 639751 , 428517 , 782581 , 465556 , 778618 , 542588 , 511319 , 431954 , 462088 , 484462 , 647895 , 595699 , 542583 , 542595 , 601579 , 634774 , 642066 , 599914 , 637080 , 466176 , 545605 , 537204 , 647838 , 647905 , 651148 , 666863 , 672682 , 641955 , 633491 , 597235 , 635258 , 631194 , 639292 , 647854 , 599966 , 639818 , 639796 , 639716 , 639760 , 599833 , 599922 , 647860 , 647948 , 676428 , 545469 , 599927 , 641953 , 601578 , 628371 , 630552 , 634780 , 529794 , 529792 , 545460 , 545355 , 642774 , 633502 , 641978 , 630280 );
Copy
4
2.78 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
425571
428517
431954
462088
465556
466176
484462
511319
529792
529794
537204
542583
542588
542595
545355
545460
545469
545605
550945
595699
597235
599833
599914
599922
599927
599966
600360
601578
601579
628371
630280
630552
631194
633491
633502
634115
634774
634780
634784
635258
637080
639292
639716
639751
639760
639796
639818
641953
641955
641956
641978
642066
642774
647838
647854
647860
647895
647905
647948
651148
662156
666863
667944
672682
676428
680112
693406
731339
744157
778618
782581
790124
793197
800137
813174
]
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 (425571 , 428517 , 431954 , 462088 , 465556 , 466176 , 484462 , 511319 , 529792 , 529794 , 537204 , 542583 , 542588 , 542595 , 545355 , 545460 , 545469 , 545605 , 550945 , 595699 , 597235 , 599833 , 599914 , 599922 , 599927 , 599966 , 600360 , 601578 , 601579 , 628371 , 630280 , 630552 , 631194 , 633491 , 633502 , 634115 , 634774 , 634780 , 634784 , 635258 , 637080 , 639292 , 639716 , 639751 , 639760 , 639796 , 639818 , 641953 , 641955 , 641956 , 641978 , 642066 , 642774 , 647838 , 647854 , 647860 , 647895 , 647905 , 647948 , 651148 , 662156 , 666863 , 667944 , 672682 , 676428 , 680112 , 693406 , 731339 , 744157 , 778618 , 782581 , 790124 , 793197 , 800137 , 813174 );
Copy
5
94.51 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
425571
428517
431954
462088
465556
466176
484462
511319
529792
529794
537204
542583
542588
542595
545355
545460
545469
545605
550945
595699
597235
599833
599914
599922
599927
599966
600360
601578
601579
628371
630280
630552
631194
633491
633502
634115
634774
634780
634784
635258
637080
639292
639716
639751
639760
639796
639818
641953
641955
641956
641978
642066
642774
647838
647854
647860
647895
647905
647948
651148
662156
666863
667944
672682
676428
680112
693406
731339
744157
778618
782581
790124
793197
800137
813174
]
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 (425571 , 428517 , 431954 , 462088 , 465556 , 466176 , 484462 , 511319 , 529792 , 529794 , 537204 , 542583 , 542588 , 542595 , 545355 , 545460 , 545469 , 545605 , 550945 , 595699 , 597235 , 599833 , 599914 , 599922 , 599927 , 599966 , 600360 , 601578 , 601579 , 628371 , 630280 , 630552 , 631194 , 633491 , 633502 , 634115 , 634774 , 634780 , 634784 , 635258 , 637080 , 639292 , 639716 , 639751 , 639760 , 639796 , 639818 , 641953 , 641955 , 641956 , 641978 , 642066 , 642774 , 647838 , 647854 , 647860 , 647895 , 647905 , 647948 , 651148 , 662156 , 666863 , 667944 , 672682 , 676428 , 680112 , 693406 , 731339 , 744157 , 778618 , 782581 , 790124 , 793197 , 800137 , 813174 );
Copy