3
10.64 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
585104
719199
676474
637630
740762
802392
611309
712336
736003
687608
754215
735780
454896
624021
787904
753225
762246
761384
800619
722214
402254
778395
686343
805362
717761
760966
747443
413095
458070
558360
706929
763349
396408
662172
730856
602511
749468
401996
553276
552132
599410
744511
683380
449447
700735
709228
436478
460646
782427
565674
436687
685982
654459
566041
566764
514033
468006
505977
384306
659439
608878
447539
569933
494692
517358
507511
599452
565067
]
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 (585104 , 719199 , 676474 , 637630 , 740762 , 802392 , 611309 , 712336 , 736003 , 687608 , 754215 , 735780 , 454896 , 624021 , 787904 , 753225 , 762246 , 761384 , 800619 , 722214 , 402254 , 778395 , 686343 , 805362 , 717761 , 760966 , 747443 , 413095 , 458070 , 558360 , 706929 , 763349 , 396408 , 662172 , 730856 , 602511 , 749468 , 401996 , 553276 , 552132 , 599410 , 744511 , 683380 , 449447 , 700735 , 709228 , 436478 , 460646 , 782427 , 565674 , 436687 , 685982 , 654459 , 566041 , 566764 , 514033 , 468006 , 505977 , 384306 , 659439 , 608878 , 447539 , 569933 , 494692 , 517358 , 507511 , 599452 , 565067 );
Copy
4
3.18 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
384306
396408
401996
402254
413095
436478
436687
447539
449447
454896
458070
460646
468006
494692
505977
507511
514033
517358
552132
553276
558360
565067
565674
566041
566764
569933
585104
599410
599452
602511
608878
611309
624021
637630
654459
659439
662172
676474
683380
685982
686343
687608
700735
706929
709228
712336
717761
719199
722214
730856
735780
736003
740762
744511
747443
749468
753225
754215
760966
761384
762246
763349
778395
782427
787904
800619
802392
805362
]
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 (384306 , 396408 , 401996 , 402254 , 413095 , 436478 , 436687 , 447539 , 449447 , 454896 , 458070 , 460646 , 468006 , 494692 , 505977 , 507511 , 514033 , 517358 , 552132 , 553276 , 558360 , 565067 , 565674 , 566041 , 566764 , 569933 , 585104 , 599410 , 599452 , 602511 , 608878 , 611309 , 624021 , 637630 , 654459 , 659439 , 662172 , 676474 , 683380 , 685982 , 686343 , 687608 , 700735 , 706929 , 709228 , 712336 , 717761 , 719199 , 722214 , 730856 , 735780 , 736003 , 740762 , 744511 , 747443 , 749468 , 753225 , 754215 , 760966 , 761384 , 762246 , 763349 , 778395 , 782427 , 787904 , 800619 , 802392 , 805362 );
Copy
5
101.28 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
384306
396408
401996
402254
413095
436478
436687
447539
449447
454896
458070
460646
468006
494692
505977
507511
514033
517358
552132
553276
558360
565067
565674
566041
566764
569933
585104
599410
599452
602511
608878
611309
624021
637630
654459
659439
662172
676474
683380
685982
686343
687608
700735
706929
709228
712336
717761
719199
722214
730856
735780
736003
740762
744511
747443
749468
753225
754215
760966
761384
762246
763349
778395
782427
787904
800619
802392
805362
]
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 (384306 , 396408 , 401996 , 402254 , 413095 , 436478 , 436687 , 447539 , 449447 , 454896 , 458070 , 460646 , 468006 , 494692 , 505977 , 507511 , 514033 , 517358 , 552132 , 553276 , 558360 , 565067 , 565674 , 566041 , 566764 , 569933 , 585104 , 599410 , 599452 , 602511 , 608878 , 611309 , 624021 , 637630 , 654459 , 659439 , 662172 , 676474 , 683380 , 685982 , 686343 , 687608 , 700735 , 706929 , 709228 , 712336 , 717761 , 719199 , 722214 , 730856 , 735780 , 736003 , 740762 , 744511 , 747443 , 749468 , 753225 , 754215 , 760966 , 761384 , 762246 , 763349 , 778395 , 782427 , 787904 , 800619 , 802392 , 805362 );
Copy