3
14.70 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
609497
626036
784244
627817
536403
778332
688960
647005
708968
668068
633571
774181
765764
766914
212890
785039
778334
799467
765777
444397
480735
817323
678184
678254
799471
765771
404237
409165
589317
591777
478569
573530
554772
656515
770716
765779
478585
458918
454630
473482
582071
711383
813123
797585
802580
752634
784649
479678
406203
444426
478092
452814
607187
765628
770697
717314
478581
585121
513185
575677
566843
784801
450258
473480
456377
513808
661989
516880
471366
488473
512554
]
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 (609497 , 626036 , 784244 , 627817 , 536403 , 778332 , 688960 , 647005 , 708968 , 668068 , 633571 , 774181 , 765764 , 766914 , 212890 , 785039 , 778334 , 799467 , 765777 , 444397 , 480735 , 817323 , 678184 , 678254 , 799471 , 765771 , 404237 , 409165 , 589317 , 591777 , 478569 , 573530 , 554772 , 656515 , 770716 , 765779 , 478585 , 458918 , 454630 , 473482 , 582071 , 711383 , 813123 , 797585 , 802580 , 752634 , 784649 , 479678 , 406203 , 444426 , 478092 , 452814 , 607187 , 765628 , 770697 , 717314 , 478581 , 585121 , 513185 , 575677 , 566843 , 784801 , 450258 , 473480 , 456377 , 513808 , 661989 , 516880 , 471366 , 488473 , 512554 );
Copy
4
2.11 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
212890
404237
406203
409165
444397
444426
450258
452814
454630
456377
458918
471366
473480
473482
478092
478569
478581
478585
479678
480735
488473
512554
513185
513808
516880
536403
554772
566843
573530
575677
582071
585121
589317
591777
607187
609497
626036
627817
633571
647005
656515
661989
668068
678184
678254
688960
708968
711383
717314
752634
765628
765764
765771
765777
765779
766914
770697
770716
778334
784244
784649
784801
785039
797585
799467
799471
802580
813123
817323
]
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 (212890 , 404237 , 406203 , 409165 , 444397 , 444426 , 450258 , 452814 , 454630 , 456377 , 458918 , 471366 , 473480 , 473482 , 478092 , 478569 , 478581 , 478585 , 479678 , 480735 , 488473 , 512554 , 513185 , 513808 , 516880 , 536403 , 554772 , 566843 , 573530 , 575677 , 582071 , 585121 , 589317 , 591777 , 607187 , 609497 , 626036 , 627817 , 633571 , 647005 , 656515 , 661989 , 668068 , 678184 , 678254 , 688960 , 708968 , 711383 , 717314 , 752634 , 765628 , 765764 , 765771 , 765777 , 765779 , 766914 , 770697 , 770716 , 778334 , 784244 , 784649 , 784801 , 785039 , 797585 , 799467 , 799471 , 802580 , 813123 , 817323 );
Copy
5
77.35 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
212890
404237
406203
409165
444397
444426
450258
452814
454630
456377
458918
471366
473480
473482
478092
478569
478581
478585
479678
480735
488473
512554
513185
513808
516880
536403
554772
566843
573530
575677
582071
585121
589317
591777
607187
609497
626036
627817
633571
647005
656515
661989
668068
678184
678254
688960
708968
711383
717314
752634
765628
765764
765771
765777
765779
766914
770697
770716
778334
784244
784649
784801
785039
797585
799467
799471
802580
813123
817323
]
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 (212890 , 404237 , 406203 , 409165 , 444397 , 444426 , 450258 , 452814 , 454630 , 456377 , 458918 , 471366 , 473480 , 473482 , 478092 , 478569 , 478581 , 478585 , 479678 , 480735 , 488473 , 512554 , 513185 , 513808 , 516880 , 536403 , 554772 , 566843 , 573530 , 575677 , 582071 , 585121 , 589317 , 591777 , 607187 , 609497 , 626036 , 627817 , 633571 , 647005 , 656515 , 661989 , 668068 , 678184 , 678254 , 688960 , 708968 , 711383 , 717314 , 752634 , 765628 , 765764 , 765771 , 765777 , 765779 , 766914 , 770697 , 770716 , 778334 , 784244 , 784649 , 784801 , 785039 , 797585 , 799467 , 799471 , 802580 , 813123 , 817323 );
Copy