3
11.26 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
813241
423342
497330
435325
459010
439428
398858
805136
755101
757020
787073
763738
531949
396282
493116
820768
455047
659344
789638
805134
803594
806640
435047
532978
505793
422032
559293
602168
473083
450573
510938
714725
461437
523157
515275
585373
805149
771180
447534
570743
422933
429366
532900
533005
598180
426979
513689
508457
509796
489346
392169
432128
718785
420277
530756
447513
613489
431062
515659
525272
516861
488724
679801
820759
560450
617420
]
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 (813241 , 423342 , 497330 , 435325 , 459010 , 439428 , 398858 , 805136 , 755101 , 757020 , 787073 , 763738 , 531949 , 396282 , 493116 , 820768 , 455047 , 659344 , 789638 , 805134 , 803594 , 806640 , 435047 , 532978 , 505793 , 422032 , 559293 , 602168 , 473083 , 450573 , 510938 , 714725 , 461437 , 523157 , 515275 , 585373 , 805149 , 771180 , 447534 , 570743 , 422933 , 429366 , 532900 , 533005 , 598180 , 426979 , 513689 , 508457 , 509796 , 489346 , 392169 , 432128 , 718785 , 420277 , 530756 , 447513 , 613489 , 431062 , 515659 , 525272 , 516861 , 488724 , 679801 , 820759 , 560450 , 617420 );
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
392169
396282
398858
420277
422032
422933
423342
426979
429366
431062
432128
435047
435325
439428
447513
447534
450573
455047
459010
461437
473083
488724
489346
493116
497330
505793
508457
509796
510938
513689
515275
515659
516861
523157
525272
530756
531949
532900
532978
533005
559293
560450
570743
585373
598180
602168
613489
617420
659344
679801
714725
718785
755101
757020
763738
771180
787073
789638
803594
805134
805136
805149
806640
813241
820759
820768
]
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 (392169 , 396282 , 398858 , 420277 , 422032 , 422933 , 423342 , 426979 , 429366 , 431062 , 432128 , 435047 , 435325 , 439428 , 447513 , 447534 , 450573 , 455047 , 459010 , 461437 , 473083 , 488724 , 489346 , 493116 , 497330 , 505793 , 508457 , 509796 , 510938 , 513689 , 515275 , 515659 , 516861 , 523157 , 525272 , 530756 , 531949 , 532900 , 532978 , 533005 , 559293 , 560450 , 570743 , 585373 , 598180 , 602168 , 613489 , 617420 , 659344 , 679801 , 714725 , 718785 , 755101 , 757020 , 763738 , 771180 , 787073 , 789638 , 803594 , 805134 , 805136 , 805149 , 806640 , 813241 , 820759 , 820768 );
Copy
5
94.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
392169
396282
398858
420277
422032
422933
423342
426979
429366
431062
432128
435047
435325
439428
447513
447534
450573
455047
459010
461437
473083
488724
489346
493116
497330
505793
508457
509796
510938
513689
515275
515659
516861
523157
525272
530756
531949
532900
532978
533005
559293
560450
570743
585373
598180
602168
613489
617420
659344
679801
714725
718785
755101
757020
763738
771180
787073
789638
803594
805134
805136
805149
806640
813241
820759
820768
]
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 (392169 , 396282 , 398858 , 420277 , 422032 , 422933 , 423342 , 426979 , 429366 , 431062 , 432128 , 435047 , 435325 , 439428 , 447513 , 447534 , 450573 , 455047 , 459010 , 461437 , 473083 , 488724 , 489346 , 493116 , 497330 , 505793 , 508457 , 509796 , 510938 , 513689 , 515275 , 515659 , 516861 , 523157 , 525272 , 530756 , 531949 , 532900 , 532978 , 533005 , 559293 , 560450 , 570743 , 585373 , 598180 , 602168 , 613489 , 617420 , 659344 , 679801 , 714725 , 718785 , 755101 , 757020 , 763738 , 771180 , 787073 , 789638 , 803594 , 805134 , 805136 , 805149 , 806640 , 813241 , 820759 , 820768 );
Copy