3
11.40 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
634471
388351
769908
533980
576426
803264
724608
30636
487495
674016
770418
631988
398660
714153
806126
475598
713527
653756
687116
687119
775492
444577
578418
790990
681331
522786
518369
540395
583659
489173
602606
822310
786141
823206
821112
823125
709134
739055
820965
821060
821210
821937
822730
461069
389198
820784
822154
815581
822646
816209
412772
434379
386190
822011
464101
815865
487504
527063
498454
421102
446587
452068
443757
405850
461346
545779
483499
477545
432081
507078
475241
596571
446084
]
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 (634471 , 388351 , 769908 , 533980 , 576426 , 803264 , 724608 , 30636 , 487495 , 674016 , 770418 , 631988 , 398660 , 714153 , 806126 , 475598 , 713527 , 653756 , 687116 , 687119 , 775492 , 444577 , 578418 , 790990 , 681331 , 522786 , 518369 , 540395 , 583659 , 489173 , 602606 , 822310 , 786141 , 823206 , 821112 , 823125 , 709134 , 739055 , 820965 , 821060 , 821210 , 821937 , 822730 , 461069 , 389198 , 820784 , 822154 , 815581 , 822646 , 816209 , 412772 , 434379 , 386190 , 822011 , 464101 , 815865 , 487504 , 527063 , 498454 , 421102 , 446587 , 452068 , 443757 , 405850 , 461346 , 545779 , 483499 , 477545 , 432081 , 507078 , 475241 , 596571 , 446084 );
Copy
4
3.71 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
30636
386190
388351
389198
398660
405850
412772
421102
432081
434379
443757
444577
446084
446587
452068
461069
461346
464101
475241
475598
477545
483499
487495
487504
489173
498454
507078
518369
522786
527063
533980
540395
545779
576426
578418
583659
596571
602606
631988
634471
653756
674016
681331
687116
687119
709134
713527
714153
724608
739055
769908
770418
775492
786141
790990
803264
806126
815581
815865
816209
820784
820965
821060
821112
821210
821937
822011
822154
822310
822646
822730
823206
]
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 (30636 , 386190 , 388351 , 389198 , 398660 , 405850 , 412772 , 421102 , 432081 , 434379 , 443757 , 444577 , 446084 , 446587 , 452068 , 461069 , 461346 , 464101 , 475241 , 475598 , 477545 , 483499 , 487495 , 487504 , 489173 , 498454 , 507078 , 518369 , 522786 , 527063 , 533980 , 540395 , 545779 , 576426 , 578418 , 583659 , 596571 , 602606 , 631988 , 634471 , 653756 , 674016 , 681331 , 687116 , 687119 , 709134 , 713527 , 714153 , 724608 , 739055 , 769908 , 770418 , 775492 , 786141 , 790990 , 803264 , 806126 , 815581 , 815865 , 816209 , 820784 , 820965 , 821060 , 821112 , 821210 , 821937 , 822011 , 822154 , 822310 , 822646 , 822730 , 823206 );
Copy
5
315.86 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
30636
386190
388351
389198
398660
405850
412772
421102
432081
434379
443757
444577
446084
446587
452068
461069
461346
464101
475241
475598
477545
483499
487495
487504
489173
498454
507078
518369
522786
527063
533980
540395
545779
576426
578418
583659
596571
602606
631988
634471
653756
674016
681331
687116
687119
709134
713527
714153
724608
739055
769908
770418
775492
786141
790990
803264
806126
815581
815865
816209
820784
820965
821060
821112
821210
821937
822011
822154
822310
822646
822730
823206
]
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 (30636 , 386190 , 388351 , 389198 , 398660 , 405850 , 412772 , 421102 , 432081 , 434379 , 443757 , 444577 , 446084 , 446587 , 452068 , 461069 , 461346 , 464101 , 475241 , 475598 , 477545 , 483499 , 487495 , 487504 , 489173 , 498454 , 507078 , 518369 , 522786 , 527063 , 533980 , 540395 , 545779 , 576426 , 578418 , 583659 , 596571 , 602606 , 631988 , 634471 , 653756 , 674016 , 681331 , 687116 , 687119 , 709134 , 713527 , 714153 , 724608 , 739055 , 769908 , 770418 , 775492 , 786141 , 790990 , 803264 , 806126 , 815581 , 815865 , 816209 , 820784 , 820965 , 821060 , 821112 , 821210 , 821937 , 822011 , 822154 , 822310 , 822646 , 822730 , 823206 );
Copy