3
10.83 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
514240
580368
651599
626760
633780
589240
538854
541575
559111
699397
711283
600171
614858
625696
543022
551535
677892
678966
666472
681251
562049
786608
607238
635224
601583
541699
561488
581972
673588
576719
545982
539319
632595
600218
632585
639767
565997
568777
570735
542456
551059
578642
590344
540572
541854
599922
541888
600252
600021
615714
598099
647837
600257
554826
555616
585331
675008
641978
579707
567277
683054
618622
633435
544366
550705
]
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 (514240 , 580368 , 651599 , 626760 , 633780 , 589240 , 538854 , 541575 , 559111 , 699397 , 711283 , 600171 , 614858 , 625696 , 543022 , 551535 , 677892 , 678966 , 666472 , 681251 , 562049 , 786608 , 607238 , 635224 , 601583 , 541699 , 561488 , 581972 , 673588 , 576719 , 545982 , 539319 , 632595 , 600218 , 632585 , 639767 , 565997 , 568777 , 570735 , 542456 , 551059 , 578642 , 590344 , 540572 , 541854 , 599922 , 541888 , 600252 , 600021 , 615714 , 598099 , 647837 , 600257 , 554826 , 555616 , 585331 , 675008 , 641978 , 579707 , 567277 , 683054 , 618622 , 633435 , 544366 , 550705 );
Copy
4
2.61 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
514240
538854
539319
540572
541575
541699
541854
541888
542456
543022
544366
545982
550705
551059
551535
554826
555616
559111
561488
562049
565997
567277
568777
570735
576719
578642
579707
580368
581972
585331
589240
590344
598099
599922
600021
600171
600218
600252
600257
601583
607238
614858
615714
618622
625696
626760
632585
632595
633435
633780
635224
639767
641978
647837
651599
666472
673588
675008
677892
678966
681251
683054
699397
711283
786608
]
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 (514240 , 538854 , 539319 , 540572 , 541575 , 541699 , 541854 , 541888 , 542456 , 543022 , 544366 , 545982 , 550705 , 551059 , 551535 , 554826 , 555616 , 559111 , 561488 , 562049 , 565997 , 567277 , 568777 , 570735 , 576719 , 578642 , 579707 , 580368 , 581972 , 585331 , 589240 , 590344 , 598099 , 599922 , 600021 , 600171 , 600218 , 600252 , 600257 , 601583 , 607238 , 614858 , 615714 , 618622 , 625696 , 626760 , 632585 , 632595 , 633435 , 633780 , 635224 , 639767 , 641978 , 647837 , 651599 , 666472 , 673588 , 675008 , 677892 , 678966 , 681251 , 683054 , 699397 , 711283 , 786608 );
Copy
5
132.99 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
514240
538854
539319
540572
541575
541699
541854
541888
542456
543022
544366
545982
550705
551059
551535
554826
555616
559111
561488
562049
565997
567277
568777
570735
576719
578642
579707
580368
581972
585331
589240
590344
598099
599922
600021
600171
600218
600252
600257
601583
607238
614858
615714
618622
625696
626760
632585
632595
633435
633780
635224
639767
641978
647837
651599
666472
673588
675008
677892
678966
681251
683054
699397
711283
786608
]
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 (514240 , 538854 , 539319 , 540572 , 541575 , 541699 , 541854 , 541888 , 542456 , 543022 , 544366 , 545982 , 550705 , 551059 , 551535 , 554826 , 555616 , 559111 , 561488 , 562049 , 565997 , 567277 , 568777 , 570735 , 576719 , 578642 , 579707 , 580368 , 581972 , 585331 , 589240 , 590344 , 598099 , 599922 , 600021 , 600171 , 600218 , 600252 , 600257 , 601583 , 607238 , 614858 , 615714 , 618622 , 625696 , 626760 , 632585 , 632595 , 633435 , 633780 , 635224 , 639767 , 641978 , 647837 , 651599 , 666472 , 673588 , 675008 , 677892 , 678966 , 681251 , 683054 , 699397 , 711283 , 786608 );
Copy