3
11.79 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
729815
663176
671077
529025
722594
598805
529075
659419
429445
640732
640737
530494
409114
711744
575157
721102
647119
711064
631167
790494
698259
671810
640731
811943
6982
719235
601840
423299
402541
575475
668083
718784
623165
722199
534984
575798
679798
462804
431120
575096
562326
483814
817230
576119
574870
500292
436304
411846
448616
534996
679653
529034
788268
411845
415761
527568
679816
640763
633732
410267
537685
637044
727812
534988
625437
623678
]
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 (729815 , 663176 , 671077 , 529025 , 722594 , 598805 , 529075 , 659419 , 429445 , 640732 , 640737 , 530494 , 409114 , 711744 , 575157 , 721102 , 647119 , 711064 , 631167 , 790494 , 698259 , 671810 , 640731 , 811943 , 6982 , 719235 , 601840 , 423299 , 402541 , 575475 , 668083 , 718784 , 623165 , 722199 , 534984 , 575798 , 679798 , 462804 , 431120 , 575096 , 562326 , 483814 , 817230 , 576119 , 574870 , 500292 , 436304 , 411846 , 448616 , 534996 , 679653 , 529034 , 788268 , 411845 , 415761 , 527568 , 679816 , 640763 , 633732 , 410267 , 537685 , 637044 , 727812 , 534988 , 625437 , 623678 );
Copy
4
2.27 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
6982
402541
409114
410267
411845
411846
415761
423299
429445
431120
436304
448616
462804
483814
500292
527568
529025
529034
529075
530494
534984
534988
534996
537685
562326
574870
575096
575157
575475
575798
576119
598805
601840
623165
623678
625437
631167
633732
637044
640731
640732
640737
640763
647119
659419
663176
668083
671077
671810
679653
679798
679816
698259
711064
711744
718784
719235
721102
722199
722594
727812
729815
788268
790494
811943
817230
]
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 (6982 , 402541 , 409114 , 410267 , 411845 , 411846 , 415761 , 423299 , 429445 , 431120 , 436304 , 448616 , 462804 , 483814 , 500292 , 527568 , 529025 , 529034 , 529075 , 530494 , 534984 , 534988 , 534996 , 537685 , 562326 , 574870 , 575096 , 575157 , 575475 , 575798 , 576119 , 598805 , 601840 , 623165 , 623678 , 625437 , 631167 , 633732 , 637044 , 640731 , 640732 , 640737 , 640763 , 647119 , 659419 , 663176 , 668083 , 671077 , 671810 , 679653 , 679798 , 679816 , 698259 , 711064 , 711744 , 718784 , 719235 , 721102 , 722199 , 722594 , 727812 , 729815 , 788268 , 790494 , 811943 , 817230 );
Copy
5
73.11 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
6982
402541
409114
410267
411845
411846
415761
423299
429445
431120
436304
448616
462804
483814
500292
527568
529025
529034
529075
530494
534984
534988
534996
537685
562326
574870
575096
575157
575475
575798
576119
598805
601840
623165
623678
625437
631167
633732
637044
640731
640732
640737
640763
647119
659419
663176
668083
671077
671810
679653
679798
679816
698259
711064
711744
718784
719235
721102
722199
722594
727812
729815
788268
790494
811943
817230
]
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 (6982 , 402541 , 409114 , 410267 , 411845 , 411846 , 415761 , 423299 , 429445 , 431120 , 436304 , 448616 , 462804 , 483814 , 500292 , 527568 , 529025 , 529034 , 529075 , 530494 , 534984 , 534988 , 534996 , 537685 , 562326 , 574870 , 575096 , 575157 , 575475 , 575798 , 576119 , 598805 , 601840 , 623165 , 623678 , 625437 , 631167 , 633732 , 637044 , 640731 , 640732 , 640737 , 640763 , 647119 , 659419 , 663176 , 668083 , 671077 , 671810 , 679653 , 679798 , 679816 , 698259 , 711064 , 711744 , 718784 , 719235 , 721102 , 722199 , 722594 , 727812 , 729815 , 788268 , 790494 , 811943 , 817230 );
Copy