3
16.47 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
544482
825915
544496
544486
828201
712831
390233
663436
796316
411776
815807
510889
680702
814669
669756
549723
820188
511536
408969
800708
761594
815773
824466
815263
741007
807379
493117
714743
435225
432702
464449
465886
513982
692816
631970
729287
466930
370875
415554
417756
453144
458420
499860
563424
601667
797353
401902
472438
528093
463773
522666
565687
624905
805945
518201
400233
815063
533831
590079
402141
446148
524560
527232
514768
522604
501179
596851
453313
456518
454709
]
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 (544482 , 825915 , 544496 , 544486 , 828201 , 712831 , 390233 , 663436 , 796316 , 411776 , 815807 , 510889 , 680702 , 814669 , 669756 , 549723 , 820188 , 511536 , 408969 , 800708 , 761594 , 815773 , 824466 , 815263 , 741007 , 807379 , 493117 , 714743 , 435225 , 432702 , 464449 , 465886 , 513982 , 692816 , 631970 , 729287 , 466930 , 370875 , 415554 , 417756 , 453144 , 458420 , 499860 , 563424 , 601667 , 797353 , 401902 , 472438 , 528093 , 463773 , 522666 , 565687 , 624905 , 805945 , 518201 , 400233 , 815063 , 533831 , 590079 , 402141 , 446148 , 524560 , 527232 , 514768 , 522604 , 501179 , 596851 , 453313 , 456518 , 454709 );
Copy
4
2.58 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
370875
390233
400233
401902
402141
408969
411776
415554
417756
432702
435225
446148
453144
453313
454709
456518
458420
463773
464449
465886
466930
472438
493117
499860
501179
510889
511536
513982
514768
518201
522604
522666
524560
527232
528093
533831
544482
544486
544496
549723
563424
565687
590079
596851
601667
624905
631970
663436
669756
680702
692816
712831
714743
729287
741007
761594
796316
797353
800708
805945
807379
814669
815063
815263
815773
815807
820188
824466
825915
828201
]
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 (370875 , 390233 , 400233 , 401902 , 402141 , 408969 , 411776 , 415554 , 417756 , 432702 , 435225 , 446148 , 453144 , 453313 , 454709 , 456518 , 458420 , 463773 , 464449 , 465886 , 466930 , 472438 , 493117 , 499860 , 501179 , 510889 , 511536 , 513982 , 514768 , 518201 , 522604 , 522666 , 524560 , 527232 , 528093 , 533831 , 544482 , 544486 , 544496 , 549723 , 563424 , 565687 , 590079 , 596851 , 601667 , 624905 , 631970 , 663436 , 669756 , 680702 , 692816 , 712831 , 714743 , 729287 , 741007 , 761594 , 796316 , 797353 , 800708 , 805945 , 807379 , 814669 , 815063 , 815263 , 815773 , 815807 , 820188 , 824466 , 825915 , 828201 );
Copy
5
102.32 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
370875
390233
400233
401902
402141
408969
411776
415554
417756
432702
435225
446148
453144
453313
454709
456518
458420
463773
464449
465886
466930
472438
493117
499860
501179
510889
511536
513982
514768
518201
522604
522666
524560
527232
528093
533831
544482
544486
544496
549723
563424
565687
590079
596851
601667
624905
631970
663436
669756
680702
692816
712831
714743
729287
741007
761594
796316
797353
800708
805945
807379
814669
815063
815263
815773
815807
820188
824466
825915
828201
]
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 (370875 , 390233 , 400233 , 401902 , 402141 , 408969 , 411776 , 415554 , 417756 , 432702 , 435225 , 446148 , 453144 , 453313 , 454709 , 456518 , 458420 , 463773 , 464449 , 465886 , 466930 , 472438 , 493117 , 499860 , 501179 , 510889 , 511536 , 513982 , 514768 , 518201 , 522604 , 522666 , 524560 , 527232 , 528093 , 533831 , 544482 , 544486 , 544496 , 549723 , 563424 , 565687 , 590079 , 596851 , 601667 , 624905 , 631970 , 663436 , 669756 , 680702 , 692816 , 712831 , 714743 , 729287 , 741007 , 761594 , 796316 , 797353 , 800708 , 805945 , 807379 , 814669 , 815063 , 815263 , 815773 , 815807 , 820188 , 824466 , 825915 , 828201 );
Copy