3
14.17 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
732160
477987
597018
537233
580712
512240
552075
754106
777564
484744
702176
425586
478911
696195
597514
417163
600083
598206
598018
594942
598456
607229
779564
536337
520402
573515
601277
740617
756672
777570
582548
718784
720621
590394
598438
626293
620233
466131
467347
466840
477596
598098
751615
519726
491704
594788
470402
584694
598058
490180
463079
566782
644971
525756
573732
533697
600354
600004
683261
590411
636295
458555
512508
561995
494786
599844
492111
525683
533746
448154
]
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 (732160 , 477987 , 597018 , 537233 , 580712 , 512240 , 552075 , 754106 , 777564 , 484744 , 702176 , 425586 , 478911 , 696195 , 597514 , 417163 , 600083 , 598206 , 598018 , 594942 , 598456 , 607229 , 779564 , 536337 , 520402 , 573515 , 601277 , 740617 , 756672 , 777570 , 582548 , 718784 , 720621 , 590394 , 598438 , 626293 , 620233 , 466131 , 467347 , 466840 , 477596 , 598098 , 751615 , 519726 , 491704 , 594788 , 470402 , 584694 , 598058 , 490180 , 463079 , 566782 , 644971 , 525756 , 573732 , 533697 , 600354 , 600004 , 683261 , 590411 , 636295 , 458555 , 512508 , 561995 , 494786 , 599844 , 492111 , 525683 , 533746 , 448154 );
Copy
4
3.04 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
417163
425586
448154
458555
463079
466131
466840
467347
470402
477596
477987
478911
484744
490180
491704
492111
494786
512240
512508
519726
520402
525683
525756
533697
533746
536337
537233
552075
561995
566782
573515
573732
580712
582548
584694
590394
590411
594788
594942
597018
597514
598018
598058
598098
598206
598438
598456
599844
600004
600083
600354
601277
607229
620233
626293
636295
644971
683261
696195
702176
718784
720621
732160
740617
751615
754106
756672
777564
777570
779564
]
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 (417163 , 425586 , 448154 , 458555 , 463079 , 466131 , 466840 , 467347 , 470402 , 477596 , 477987 , 478911 , 484744 , 490180 , 491704 , 492111 , 494786 , 512240 , 512508 , 519726 , 520402 , 525683 , 525756 , 533697 , 533746 , 536337 , 537233 , 552075 , 561995 , 566782 , 573515 , 573732 , 580712 , 582548 , 584694 , 590394 , 590411 , 594788 , 594942 , 597018 , 597514 , 598018 , 598058 , 598098 , 598206 , 598438 , 598456 , 599844 , 600004 , 600083 , 600354 , 601277 , 607229 , 620233 , 626293 , 636295 , 644971 , 683261 , 696195 , 702176 , 718784 , 720621 , 732160 , 740617 , 751615 , 754106 , 756672 , 777564 , 777570 , 779564 );
Copy
5
78.42 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
417163
425586
448154
458555
463079
466131
466840
467347
470402
477596
477987
478911
484744
490180
491704
492111
494786
512240
512508
519726
520402
525683
525756
533697
533746
536337
537233
552075
561995
566782
573515
573732
580712
582548
584694
590394
590411
594788
594942
597018
597514
598018
598058
598098
598206
598438
598456
599844
600004
600083
600354
601277
607229
620233
626293
636295
644971
683261
696195
702176
718784
720621
732160
740617
751615
754106
756672
777564
777570
779564
]
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 (417163 , 425586 , 448154 , 458555 , 463079 , 466131 , 466840 , 467347 , 470402 , 477596 , 477987 , 478911 , 484744 , 490180 , 491704 , 492111 , 494786 , 512240 , 512508 , 519726 , 520402 , 525683 , 525756 , 533697 , 533746 , 536337 , 537233 , 552075 , 561995 , 566782 , 573515 , 573732 , 580712 , 582548 , 584694 , 590394 , 590411 , 594788 , 594942 , 597018 , 597514 , 598018 , 598058 , 598098 , 598206 , 598438 , 598456 , 599844 , 600004 , 600083 , 600354 , 601277 , 607229 , 620233 , 626293 , 636295 , 644971 , 683261 , 696195 , 702176 , 718784 , 720621 , 732160 , 740617 , 751615 , 754106 , 756672 , 777564 , 777570 , 779564 );
Copy