4
11.24 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
750454
756303
640477
716977
788650
789503
570146
575645
596870
810521
811898
794818
794964
810931
750296
753118
756301
603265
629831
803154
816647
481624
493283
469703
563985
575707
578285
660044
660750
610104
597859
802412
803148
803292
748033
737995
716974
795295
803164
517157
551933
543929
562345
667253
596925
614376
605567
605671
801234
716965
484918
524325
575708
562342
716980
720262
565937
578678
506167
575710
562346
588620
463230
575713
543434
547525
]
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 (750454 , 756303 , 640477 , 716977 , 788650 , 789503 , 570146 , 575645 , 596870 , 810521 , 811898 , 794818 , 794964 , 810931 , 750296 , 753118 , 756301 , 603265 , 629831 , 803154 , 816647 , 481624 , 493283 , 469703 , 563985 , 575707 , 578285 , 660044 , 660750 , 610104 , 597859 , 802412 , 803148 , 803292 , 748033 , 737995 , 716974 , 795295 , 803164 , 517157 , 551933 , 543929 , 562345 , 667253 , 596925 , 614376 , 605567 , 605671 , 801234 , 716965 , 484918 , 524325 , 575708 , 562342 , 716980 , 720262 , 565937 , 578678 , 506167 , 575710 , 562346 , 588620 , 463230 , 575713 , 543434 , 547525 );
Copy
5
3.74 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
463230
469703
481624
484918
493283
506167
517157
524325
543434
543929
547525
551933
562342
562345
562346
563985
565937
570146
575645
575707
575708
575710
575713
578285
578678
588620
596870
596925
597859
603265
605567
605671
610104
614376
629831
640477
660044
660750
667253
716965
716974
716977
716980
720262
737995
748033
750296
750454
753118
756301
756303
788650
789503
794818
794964
795295
801234
802412
803148
803154
803164
803292
810521
810931
811898
816647
]
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 (463230 , 469703 , 481624 , 484918 , 493283 , 506167 , 517157 , 524325 , 543434 , 543929 , 547525 , 551933 , 562342 , 562345 , 562346 , 563985 , 565937 , 570146 , 575645 , 575707 , 575708 , 575710 , 575713 , 578285 , 578678 , 588620 , 596870 , 596925 , 597859 , 603265 , 605567 , 605671 , 610104 , 614376 , 629831 , 640477 , 660044 , 660750 , 667253 , 716965 , 716974 , 716977 , 716980 , 720262 , 737995 , 748033 , 750296 , 750454 , 753118 , 756301 , 756303 , 788650 , 789503 , 794818 , 794964 , 795295 , 801234 , 802412 , 803148 , 803154 , 803164 , 803292 , 810521 , 810931 , 811898 , 816647 );
Copy
6
103.88 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
463230
469703
481624
484918
493283
506167
517157
524325
543434
543929
547525
551933
562342
562345
562346
563985
565937
570146
575645
575707
575708
575710
575713
578285
578678
588620
596870
596925
597859
603265
605567
605671
610104
614376
629831
640477
660044
660750
667253
716965
716974
716977
716980
720262
737995
748033
750296
750454
753118
756301
756303
788650
789503
794818
794964
795295
801234
802412
803148
803154
803164
803292
810521
810931
811898
816647
]
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 (463230 , 469703 , 481624 , 484918 , 493283 , 506167 , 517157 , 524325 , 543434 , 543929 , 547525 , 551933 , 562342 , 562345 , 562346 , 563985 , 565937 , 570146 , 575645 , 575707 , 575708 , 575710 , 575713 , 578285 , 578678 , 588620 , 596870 , 596925 , 597859 , 603265 , 605567 , 605671 , 610104 , 614376 , 629831 , 640477 , 660044 , 660750 , 667253 , 716965 , 716974 , 716977 , 716980 , 720262 , 737995 , 748033 , 750296 , 750454 , 753118 , 756301 , 756303 , 788650 , 789503 , 794818 , 794964 , 795295 , 801234 , 802412 , 803148 , 803154 , 803164 , 803292 , 810521 , 810931 , 811898 , 816647 );
Copy