3
13.65 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
590417
729821
547909
562981
563455
563415
549767
559060
574235
550233
546957
558172
563151
563447
547607
558009
563221
567959
550232
563166
549776
563220
563432
567754
562993
567955
482945
563198
546993
601846
549771
563190
563218
564661
473242
558008
560378
563448
581618
697459
601853
558003
542956
547932
566304
544502
590693
615757
619076
542960
563456
563446
601851
597134
566370
563441
579345
617641
662137
622833
546774
542954
620757
543579
]
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 (590417 , 729821 , 547909 , 562981 , 563455 , 563415 , 549767 , 559060 , 574235 , 550233 , 546957 , 558172 , 563151 , 563447 , 547607 , 558009 , 563221 , 567959 , 550232 , 563166 , 549776 , 563220 , 563432 , 567754 , 562993 , 567955 , 482945 , 563198 , 546993 , 601846 , 549771 , 563190 , 563218 , 564661 , 473242 , 558008 , 560378 , 563448 , 581618 , 697459 , 601853 , 558003 , 542956 , 547932 , 566304 , 544502 , 590693 , 615757 , 619076 , 542960 , 563456 , 563446 , 601851 , 597134 , 566370 , 563441 , 579345 , 617641 , 662137 , 622833 , 546774 , 542954 , 620757 , 543579 );
Copy
4
2.51 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
473242
482945
542954
542956
542960
543579
544502
546774
546957
546993
547607
547909
547932
549767
549771
549776
550232
550233
558003
558008
558009
558172
559060
560378
562981
562993
563151
563166
563190
563198
563218
563220
563221
563415
563432
563441
563446
563447
563448
563455
563456
564661
566304
566370
567754
567955
567959
574235
579345
581618
590417
590693
597134
601846
601851
601853
615757
617641
619076
620757
622833
662137
697459
729821
]
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 (473242 , 482945 , 542954 , 542956 , 542960 , 543579 , 544502 , 546774 , 546957 , 546993 , 547607 , 547909 , 547932 , 549767 , 549771 , 549776 , 550232 , 550233 , 558003 , 558008 , 558009 , 558172 , 559060 , 560378 , 562981 , 562993 , 563151 , 563166 , 563190 , 563198 , 563218 , 563220 , 563221 , 563415 , 563432 , 563441 , 563446 , 563447 , 563448 , 563455 , 563456 , 564661 , 566304 , 566370 , 567754 , 567955 , 567959 , 574235 , 579345 , 581618 , 590417 , 590693 , 597134 , 601846 , 601851 , 601853 , 615757 , 617641 , 619076 , 620757 , 622833 , 662137 , 697459 , 729821 );
Copy
5
88.59 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
473242
482945
542954
542956
542960
543579
544502
546774
546957
546993
547607
547909
547932
549767
549771
549776
550232
550233
558003
558008
558009
558172
559060
560378
562981
562993
563151
563166
563190
563198
563218
563220
563221
563415
563432
563441
563446
563447
563448
563455
563456
564661
566304
566370
567754
567955
567959
574235
579345
581618
590417
590693
597134
601846
601851
601853
615757
617641
619076
620757
622833
662137
697459
729821
]
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 (473242 , 482945 , 542954 , 542956 , 542960 , 543579 , 544502 , 546774 , 546957 , 546993 , 547607 , 547909 , 547932 , 549767 , 549771 , 549776 , 550232 , 550233 , 558003 , 558008 , 558009 , 558172 , 559060 , 560378 , 562981 , 562993 , 563151 , 563166 , 563190 , 563198 , 563218 , 563220 , 563221 , 563415 , 563432 , 563441 , 563446 , 563447 , 563448 , 563455 , 563456 , 564661 , 566304 , 566370 , 567754 , 567955 , 567959 , 574235 , 579345 , 581618 , 590417 , 590693 , 597134 , 601846 , 601851 , 601853 , 615757 , 617641 , 619076 , 620757 , 622833 , 662137 , 697459 , 729821 );
Copy