3
13.30 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
446026
466601
683054
613508
604351
630919
474800
455079
426283
460911
511372
522363
468035
496252
816371
532893
420866
665641
469691
473507
689010
722373
415776
418102
419609
452363
484708
520911
528682
590230
454210
496999
506529
563444
782236
641126
484706
509432
418132
746594
598859
556683
652766
439558
638576
118109
449940
540511
618300
421613
504002
558719
479548
599967
419628
467705
453900
592985
441644
521740
516684
585007
554930
593994
454135
450901
]
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 (446026 , 466601 , 683054 , 613508 , 604351 , 630919 , 474800 , 455079 , 426283 , 460911 , 511372 , 522363 , 468035 , 496252 , 816371 , 532893 , 420866 , 665641 , 469691 , 473507 , 689010 , 722373 , 415776 , 418102 , 419609 , 452363 , 484708 , 520911 , 528682 , 590230 , 454210 , 496999 , 506529 , 563444 , 782236 , 641126 , 484706 , 509432 , 418132 , 746594 , 598859 , 556683 , 652766 , 439558 , 638576 , 118109 , 449940 , 540511 , 618300 , 421613 , 504002 , 558719 , 479548 , 599967 , 419628 , 467705 , 453900 , 592985 , 441644 , 521740 , 516684 , 585007 , 554930 , 593994 , 454135 , 450901 );
Copy
4
2.42 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
118109
415776
418102
418132
419609
419628
420866
421613
426283
439558
441644
446026
449940
450901
452363
453900
454135
454210
455079
460911
466601
467705
468035
469691
473507
474800
479548
484706
484708
496252
496999
504002
506529
509432
511372
516684
520911
521740
522363
528682
532893
540511
554930
556683
558719
563444
585007
590230
592985
593994
598859
599967
604351
613508
618300
630919
638576
641126
652766
665641
683054
689010
722373
746594
782236
816371
]
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 (118109 , 415776 , 418102 , 418132 , 419609 , 419628 , 420866 , 421613 , 426283 , 439558 , 441644 , 446026 , 449940 , 450901 , 452363 , 453900 , 454135 , 454210 , 455079 , 460911 , 466601 , 467705 , 468035 , 469691 , 473507 , 474800 , 479548 , 484706 , 484708 , 496252 , 496999 , 504002 , 506529 , 509432 , 511372 , 516684 , 520911 , 521740 , 522363 , 528682 , 532893 , 540511 , 554930 , 556683 , 558719 , 563444 , 585007 , 590230 , 592985 , 593994 , 598859 , 599967 , 604351 , 613508 , 618300 , 630919 , 638576 , 641126 , 652766 , 665641 , 683054 , 689010 , 722373 , 746594 , 782236 , 816371 );
Copy
5
100.63 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
118109
415776
418102
418132
419609
419628
420866
421613
426283
439558
441644
446026
449940
450901
452363
453900
454135
454210
455079
460911
466601
467705
468035
469691
473507
474800
479548
484706
484708
496252
496999
504002
506529
509432
511372
516684
520911
521740
522363
528682
532893
540511
554930
556683
558719
563444
585007
590230
592985
593994
598859
599967
604351
613508
618300
630919
638576
641126
652766
665641
683054
689010
722373
746594
782236
816371
]
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 (118109 , 415776 , 418102 , 418132 , 419609 , 419628 , 420866 , 421613 , 426283 , 439558 , 441644 , 446026 , 449940 , 450901 , 452363 , 453900 , 454135 , 454210 , 455079 , 460911 , 466601 , 467705 , 468035 , 469691 , 473507 , 474800 , 479548 , 484706 , 484708 , 496252 , 496999 , 504002 , 506529 , 509432 , 511372 , 516684 , 520911 , 521740 , 522363 , 528682 , 532893 , 540511 , 554930 , 556683 , 558719 , 563444 , 585007 , 590230 , 592985 , 593994 , 598859 , 599967 , 604351 , 613508 , 618300 , 630919 , 638576 , 641126 , 652766 , 665641 , 683054 , 689010 , 722373 , 746594 , 782236 , 816371 );
Copy