3
9.21 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
476015
733204
590631
473788
436042
477966
506053
462310
565095
453095
603147
524613
556422
400719
524527
448521
535306
615714
501209
458031
718695
581433
476261
484629
504176
550232
640136
474639
513607
460756
621463
484665
443040
484728
613360
520002
474024
619007
548751
604960
550667
542051
504208
611283
656371
671863
657296
621612
657670
608771
588286
520759
515568
587864
510767
591882
543419
588070
655056
655322
563546
563441
]
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 (476015 , 733204 , 590631 , 473788 , 436042 , 477966 , 506053 , 462310 , 565095 , 453095 , 603147 , 524613 , 556422 , 400719 , 524527 , 448521 , 535306 , 615714 , 501209 , 458031 , 718695 , 581433 , 476261 , 484629 , 504176 , 550232 , 640136 , 474639 , 513607 , 460756 , 621463 , 484665 , 443040 , 484728 , 613360 , 520002 , 474024 , 619007 , 548751 , 604960 , 550667 , 542051 , 504208 , 611283 , 656371 , 671863 , 657296 , 621612 , 657670 , 608771 , 588286 , 520759 , 515568 , 587864 , 510767 , 591882 , 543419 , 588070 , 655056 , 655322 , 563546 , 563441 );
Copy
4
2.30 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
400719
436042
443040
448521
453095
458031
460756
462310
473788
474024
474639
476015
476261
477966
484629
484665
484728
501209
504176
504208
506053
510767
513607
515568
520002
520759
524527
524613
535306
542051
543419
548751
550232
550667
556422
563441
563546
565095
581433
587864
588070
588286
590631
591882
603147
604960
608771
611283
613360
615714
619007
621463
621612
640136
655056
655322
656371
657296
657670
671863
718695
733204
]
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 (400719 , 436042 , 443040 , 448521 , 453095 , 458031 , 460756 , 462310 , 473788 , 474024 , 474639 , 476015 , 476261 , 477966 , 484629 , 484665 , 484728 , 501209 , 504176 , 504208 , 506053 , 510767 , 513607 , 515568 , 520002 , 520759 , 524527 , 524613 , 535306 , 542051 , 543419 , 548751 , 550232 , 550667 , 556422 , 563441 , 563546 , 565095 , 581433 , 587864 , 588070 , 588286 , 590631 , 591882 , 603147 , 604960 , 608771 , 611283 , 613360 , 615714 , 619007 , 621463 , 621612 , 640136 , 655056 , 655322 , 656371 , 657296 , 657670 , 671863 , 718695 , 733204 );
Copy
5
70.27 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
400719
436042
443040
448521
453095
458031
460756
462310
473788
474024
474639
476015
476261
477966
484629
484665
484728
501209
504176
504208
506053
510767
513607
515568
520002
520759
524527
524613
535306
542051
543419
548751
550232
550667
556422
563441
563546
565095
581433
587864
588070
588286
590631
591882
603147
604960
608771
611283
613360
615714
619007
621463
621612
640136
655056
655322
656371
657296
657670
671863
718695
733204
]
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 (400719 , 436042 , 443040 , 448521 , 453095 , 458031 , 460756 , 462310 , 473788 , 474024 , 474639 , 476015 , 476261 , 477966 , 484629 , 484665 , 484728 , 501209 , 504176 , 504208 , 506053 , 510767 , 513607 , 515568 , 520002 , 520759 , 524527 , 524613 , 535306 , 542051 , 543419 , 548751 , 550232 , 550667 , 556422 , 563441 , 563546 , 565095 , 581433 , 587864 , 588070 , 588286 , 590631 , 591882 , 603147 , 604960 , 608771 , 611283 , 613360 , 615714 , 619007 , 621463 , 621612 , 640136 , 655056 , 655322 , 656371 , 657296 , 657670 , 671863 , 718695 , 733204 );
Copy