3
9.47 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
788458
788739
605610
479314
750561
709578
467169
586378
501442
812097
766578
788448
547753
789574
788438
748989
788468
789401
603154
788431
788772
499458
614110
788275
741476
766536
741602
741502
788452
594918
747583
603970
828283
561369
556320
819550
789252
789316
467296
590224
789321
467214
505501
549575
524017
584890
789310
467173
558273
561354
662390
502562
528000
547823
562891
599252
501198
467163
567329
587133
605586
550452
467162
607387
]
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 (788458 , 788739 , 605610 , 479314 , 750561 , 709578 , 467169 , 586378 , 501442 , 812097 , 766578 , 788448 , 547753 , 789574 , 788438 , 748989 , 788468 , 789401 , 603154 , 788431 , 788772 , 499458 , 614110 , 788275 , 741476 , 766536 , 741602 , 741502 , 788452 , 594918 , 747583 , 603970 , 828283 , 561369 , 556320 , 819550 , 789252 , 789316 , 467296 , 590224 , 789321 , 467214 , 505501 , 549575 , 524017 , 584890 , 789310 , 467173 , 558273 , 561354 , 662390 , 502562 , 528000 , 547823 , 562891 , 599252 , 501198 , 467163 , 567329 , 587133 , 605586 , 550452 , 467162 , 607387 );
Copy
4
2.70 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
467162
467163
467169
467173
467214
467296
479314
499458
501198
501442
502562
505501
524017
528000
547753
547823
549575
550452
556320
558273
561354
561369
562891
567329
584890
586378
587133
590224
594918
599252
603154
603970
605586
605610
607387
614110
662390
709578
741476
741502
741602
747583
748989
750561
766536
766578
788275
788431
788438
788448
788452
788458
788468
788739
788772
789252
789310
789316
789321
789401
789574
812097
819550
828283
]
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 (467162 , 467163 , 467169 , 467173 , 467214 , 467296 , 479314 , 499458 , 501198 , 501442 , 502562 , 505501 , 524017 , 528000 , 547753 , 547823 , 549575 , 550452 , 556320 , 558273 , 561354 , 561369 , 562891 , 567329 , 584890 , 586378 , 587133 , 590224 , 594918 , 599252 , 603154 , 603970 , 605586 , 605610 , 607387 , 614110 , 662390 , 709578 , 741476 , 741502 , 741602 , 747583 , 748989 , 750561 , 766536 , 766578 , 788275 , 788431 , 788438 , 788448 , 788452 , 788458 , 788468 , 788739 , 788772 , 789252 , 789310 , 789316 , 789321 , 789401 , 789574 , 812097 , 819550 , 828283 );
Copy
5
97.61 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
467162
467163
467169
467173
467214
467296
479314
499458
501198
501442
502562
505501
524017
528000
547753
547823
549575
550452
556320
558273
561354
561369
562891
567329
584890
586378
587133
590224
594918
599252
603154
603970
605586
605610
607387
614110
662390
709578
741476
741502
741602
747583
748989
750561
766536
766578
788275
788431
788438
788448
788452
788458
788468
788739
788772
789252
789310
789316
789321
789401
789574
812097
819550
828283
]
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 (467162 , 467163 , 467169 , 467173 , 467214 , 467296 , 479314 , 499458 , 501198 , 501442 , 502562 , 505501 , 524017 , 528000 , 547753 , 547823 , 549575 , 550452 , 556320 , 558273 , 561354 , 561369 , 562891 , 567329 , 584890 , 586378 , 587133 , 590224 , 594918 , 599252 , 603154 , 603970 , 605586 , 605610 , 607387 , 614110 , 662390 , 709578 , 741476 , 741502 , 741602 , 747583 , 748989 , 750561 , 766536 , 766578 , 788275 , 788431 , 788438 , 788448 , 788452 , 788458 , 788468 , 788739 , 788772 , 789252 , 789310 , 789316 , 789321 , 789401 , 789574 , 812097 , 819550 , 828283 );
Copy