4
11.37 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
741712
603744
707401
752559
785307
757788
762139
546478
677746
780449
791568
809920
799198
754202
562013
566171
771036
532392
717007
420326
585754
797878
781730
725029
606743
508210
649230
524231
562960
582497
590376
609584
595899
619538
624006
742414
758244
702331
529253
694115
604066
603038
758236
741701
608317
573778
547843
659385
600066
591218
510445
562028
556822
625274
477625
522926
505723
594838
535589
499594
614521
591216
623378
523253
528923
]
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 (741712 , 603744 , 707401 , 752559 , 785307 , 757788 , 762139 , 546478 , 677746 , 780449 , 791568 , 809920 , 799198 , 754202 , 562013 , 566171 , 771036 , 532392 , 717007 , 420326 , 585754 , 797878 , 781730 , 725029 , 606743 , 508210 , 649230 , 524231 , 562960 , 582497 , 590376 , 609584 , 595899 , 619538 , 624006 , 742414 , 758244 , 702331 , 529253 , 694115 , 604066 , 603038 , 758236 , 741701 , 608317 , 573778 , 547843 , 659385 , 600066 , 591218 , 510445 , 562028 , 556822 , 625274 , 477625 , 522926 , 505723 , 594838 , 535589 , 499594 , 614521 , 591216 , 623378 , 523253 , 528923 );
Copy
5
2.91 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
420326
477625
499594
505723
508210
510445
522926
523253
524231
528923
529253
532392
535589
546478
547843
556822
562013
562028
562960
566171
573778
582497
585754
590376
591216
591218
594838
595899
600066
603038
603744
604066
606743
608317
609584
614521
619538
623378
624006
625274
649230
659385
677746
694115
702331
707401
717007
725029
741701
741712
742414
752559
754202
757788
758236
758244
762139
771036
780449
781730
785307
791568
797878
799198
809920
]
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 (420326 , 477625 , 499594 , 505723 , 508210 , 510445 , 522926 , 523253 , 524231 , 528923 , 529253 , 532392 , 535589 , 546478 , 547843 , 556822 , 562013 , 562028 , 562960 , 566171 , 573778 , 582497 , 585754 , 590376 , 591216 , 591218 , 594838 , 595899 , 600066 , 603038 , 603744 , 604066 , 606743 , 608317 , 609584 , 614521 , 619538 , 623378 , 624006 , 625274 , 649230 , 659385 , 677746 , 694115 , 702331 , 707401 , 717007 , 725029 , 741701 , 741712 , 742414 , 752559 , 754202 , 757788 , 758236 , 758244 , 762139 , 771036 , 780449 , 781730 , 785307 , 791568 , 797878 , 799198 , 809920 );
Copy
6
90.65 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
420326
477625
499594
505723
508210
510445
522926
523253
524231
528923
529253
532392
535589
546478
547843
556822
562013
562028
562960
566171
573778
582497
585754
590376
591216
591218
594838
595899
600066
603038
603744
604066
606743
608317
609584
614521
619538
623378
624006
625274
649230
659385
677746
694115
702331
707401
717007
725029
741701
741712
742414
752559
754202
757788
758236
758244
762139
771036
780449
781730
785307
791568
797878
799198
809920
]
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 (420326 , 477625 , 499594 , 505723 , 508210 , 510445 , 522926 , 523253 , 524231 , 528923 , 529253 , 532392 , 535589 , 546478 , 547843 , 556822 , 562013 , 562028 , 562960 , 566171 , 573778 , 582497 , 585754 , 590376 , 591216 , 591218 , 594838 , 595899 , 600066 , 603038 , 603744 , 604066 , 606743 , 608317 , 609584 , 614521 , 619538 , 623378 , 624006 , 625274 , 649230 , 659385 , 677746 , 694115 , 702331 , 707401 , 717007 , 725029 , 741701 , 741712 , 742414 , 752559 , 754202 , 757788 , 758236 , 758244 , 762139 , 771036 , 780449 , 781730 , 785307 , 791568 , 797878 , 799198 , 809920 );
Copy