4
13.93 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
765493
737276
761496
727739
750668
720132
468940
432778
510696
528064
435100
432696
463810
526466
496616
504740
492495
573261
547865
574089
680440
554552
576516
599183
602553
794135
759785
457221
423495
513423
533948
505846
480594
488464
523541
484440
550337
558490
591988
727082
417832
432685
473552
516345
437471
466392
526199
510553
559938
622233
624375
594810
502616
482768
501598
524320
686748
601423
604046
806324
520778
516682
549860
]
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 (765493 , 737276 , 761496 , 727739 , 750668 , 720132 , 468940 , 432778 , 510696 , 528064 , 435100 , 432696 , 463810 , 526466 , 496616 , 504740 , 492495 , 573261 , 547865 , 574089 , 680440 , 554552 , 576516 , 599183 , 602553 , 794135 , 759785 , 457221 , 423495 , 513423 , 533948 , 505846 , 480594 , 488464 , 523541 , 484440 , 550337 , 558490 , 591988 , 727082 , 417832 , 432685 , 473552 , 516345 , 437471 , 466392 , 526199 , 510553 , 559938 , 622233 , 624375 , 594810 , 502616 , 482768 , 501598 , 524320 , 686748 , 601423 , 604046 , 806324 , 520778 , 516682 , 549860 );
Copy
5
2.93 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
417832
423495
432685
432696
432778
435100
437471
457221
463810
466392
468940
473552
480594
482768
484440
488464
492495
496616
501598
502616
504740
505846
510553
510696
513423
516345
516682
520778
523541
524320
526199
526466
528064
533948
547865
549860
550337
554552
558490
559938
573261
574089
576516
591988
594810
599183
601423
602553
604046
622233
624375
680440
686748
720132
727082
727739
737276
750668
759785
761496
765493
794135
806324
]
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 (417832 , 423495 , 432685 , 432696 , 432778 , 435100 , 437471 , 457221 , 463810 , 466392 , 468940 , 473552 , 480594 , 482768 , 484440 , 488464 , 492495 , 496616 , 501598 , 502616 , 504740 , 505846 , 510553 , 510696 , 513423 , 516345 , 516682 , 520778 , 523541 , 524320 , 526199 , 526466 , 528064 , 533948 , 547865 , 549860 , 550337 , 554552 , 558490 , 559938 , 573261 , 574089 , 576516 , 591988 , 594810 , 599183 , 601423 , 602553 , 604046 , 622233 , 624375 , 680440 , 686748 , 720132 , 727082 , 727739 , 737276 , 750668 , 759785 , 761496 , 765493 , 794135 , 806324 );
Copy
6
79.17 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
417832
423495
432685
432696
432778
435100
437471
457221
463810
466392
468940
473552
480594
482768
484440
488464
492495
496616
501598
502616
504740
505846
510553
510696
513423
516345
516682
520778
523541
524320
526199
526466
528064
533948
547865
549860
550337
554552
558490
559938
573261
574089
576516
591988
594810
599183
601423
602553
604046
622233
624375
680440
686748
720132
727082
727739
737276
750668
759785
761496
765493
794135
806324
]
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 (417832 , 423495 , 432685 , 432696 , 432778 , 435100 , 437471 , 457221 , 463810 , 466392 , 468940 , 473552 , 480594 , 482768 , 484440 , 488464 , 492495 , 496616 , 501598 , 502616 , 504740 , 505846 , 510553 , 510696 , 513423 , 516345 , 516682 , 520778 , 523541 , 524320 , 526199 , 526466 , 528064 , 533948 , 547865 , 549860 , 550337 , 554552 , 558490 , 559938 , 573261 , 574089 , 576516 , 591988 , 594810 , 599183 , 601423 , 602553 , 604046 , 622233 , 624375 , 680440 , 686748 , 720132 , 727082 , 727739 , 737276 , 750668 , 759785 , 761496 , 765493 , 794135 , 806324 );
Copy