3
10.73 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
816154
555835
808497
642603
820027
755199
826286
231164
709964
616450
762429
400005
820785
578171
636180
624046
745272
781253
817973
814233
522253
613879
761235
735324
709373
506660
815274
582704
485839
621829
616895
752010
489117
743128
814230
735782
525814
478728
491597
531216
695803
757402
511547
456532
655496
741507
505788
528210
558188
552572
554098
564468
782538
479469
483288
568921
496851
520964
525521
570080
503798
525258
500599
490718
569373
659405
468593
604387
662378
]
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 (816154 , 555835 , 808497 , 642603 , 820027 , 755199 , 826286 , 231164 , 709964 , 616450 , 762429 , 400005 , 820785 , 578171 , 636180 , 624046 , 745272 , 781253 , 817973 , 814233 , 522253 , 613879 , 761235 , 735324 , 709373 , 506660 , 815274 , 582704 , 485839 , 621829 , 616895 , 752010 , 489117 , 743128 , 814230 , 735782 , 525814 , 478728 , 491597 , 531216 , 695803 , 757402 , 511547 , 456532 , 655496 , 741507 , 505788 , 528210 , 558188 , 552572 , 554098 , 564468 , 782538 , 479469 , 483288 , 568921 , 496851 , 520964 , 525521 , 570080 , 503798 , 525258 , 500599 , 490718 , 569373 , 659405 , 468593 , 604387 , 662378 );
Copy
4
2.28 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
231164
400005
456532
468593
478728
479469
483288
485839
489117
490718
491597
496851
500599
503798
505788
506660
511547
520964
522253
525258
525521
525814
528210
531216
552572
554098
555835
558188
564468
568921
569373
570080
578171
582704
604387
613879
616450
616895
621829
624046
636180
642603
655496
659405
662378
695803
709373
709964
735324
735782
741507
743128
745272
752010
755199
757402
761235
762429
781253
782538
808497
814230
814233
815274
816154
817973
820027
820785
826286
]
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 (231164 , 400005 , 456532 , 468593 , 478728 , 479469 , 483288 , 485839 , 489117 , 490718 , 491597 , 496851 , 500599 , 503798 , 505788 , 506660 , 511547 , 520964 , 522253 , 525258 , 525521 , 525814 , 528210 , 531216 , 552572 , 554098 , 555835 , 558188 , 564468 , 568921 , 569373 , 570080 , 578171 , 582704 , 604387 , 613879 , 616450 , 616895 , 621829 , 624046 , 636180 , 642603 , 655496 , 659405 , 662378 , 695803 , 709373 , 709964 , 735324 , 735782 , 741507 , 743128 , 745272 , 752010 , 755199 , 757402 , 761235 , 762429 , 781253 , 782538 , 808497 , 814230 , 814233 , 815274 , 816154 , 817973 , 820027 , 820785 , 826286 );
Copy
5
84.36 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
231164
400005
456532
468593
478728
479469
483288
485839
489117
490718
491597
496851
500599
503798
505788
506660
511547
520964
522253
525258
525521
525814
528210
531216
552572
554098
555835
558188
564468
568921
569373
570080
578171
582704
604387
613879
616450
616895
621829
624046
636180
642603
655496
659405
662378
695803
709373
709964
735324
735782
741507
743128
745272
752010
755199
757402
761235
762429
781253
782538
808497
814230
814233
815274
816154
817973
820027
820785
826286
]
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 (231164 , 400005 , 456532 , 468593 , 478728 , 479469 , 483288 , 485839 , 489117 , 490718 , 491597 , 496851 , 500599 , 503798 , 505788 , 506660 , 511547 , 520964 , 522253 , 525258 , 525521 , 525814 , 528210 , 531216 , 552572 , 554098 , 555835 , 558188 , 564468 , 568921 , 569373 , 570080 , 578171 , 582704 , 604387 , 613879 , 616450 , 616895 , 621829 , 624046 , 636180 , 642603 , 655496 , 659405 , 662378 , 695803 , 709373 , 709964 , 735324 , 735782 , 741507 , 743128 , 745272 , 752010 , 755199 , 757402 , 761235 , 762429 , 781253 , 782538 , 808497 , 814230 , 814233 , 815274 , 816154 , 817973 , 820027 , 820785 , 826286 );
Copy