3
8.27 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
446921
826810
448089
816808
824775
826437
569557
764791
826545
821541
792794
557712
791644
609847
508946
568051
720089
749498
780188
802648
417100
417259
736693
814084
824636
601955
398591
447800
451636
539885
515893
598688
745866
418224
824347
548055
523752
490757
560767
687157
602791
618384
568574
474378
447340
558164
499770
561441
438738
477053
465404
502755
515010
747968
518212
489737
569559
485179
453346
448440
508168
516789
391740
395452
673661
560217
504411
516876
591351
550662
]
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 (446921 , 826810 , 448089 , 816808 , 824775 , 826437 , 569557 , 764791 , 826545 , 821541 , 792794 , 557712 , 791644 , 609847 , 508946 , 568051 , 720089 , 749498 , 780188 , 802648 , 417100 , 417259 , 736693 , 814084 , 824636 , 601955 , 398591 , 447800 , 451636 , 539885 , 515893 , 598688 , 745866 , 418224 , 824347 , 548055 , 523752 , 490757 , 560767 , 687157 , 602791 , 618384 , 568574 , 474378 , 447340 , 558164 , 499770 , 561441 , 438738 , 477053 , 465404 , 502755 , 515010 , 747968 , 518212 , 489737 , 569559 , 485179 , 453346 , 448440 , 508168 , 516789 , 391740 , 395452 , 673661 , 560217 , 504411 , 516876 , 591351 , 550662 );
Copy
4
2.33 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
391740
395452
398591
417100
417259
418224
438738
446921
447340
447800
448089
448440
451636
453346
465404
474378
477053
485179
489737
490757
499770
502755
504411
508168
508946
515010
515893
516789
516876
518212
523752
539885
548055
550662
557712
558164
560217
560767
561441
568051
568574
569557
569559
591351
598688
601955
602791
609847
618384
673661
687157
720089
736693
745866
747968
749498
764791
780188
791644
792794
802648
814084
816808
821541
824347
824636
824775
826437
826545
826810
]
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 (391740 , 395452 , 398591 , 417100 , 417259 , 418224 , 438738 , 446921 , 447340 , 447800 , 448089 , 448440 , 451636 , 453346 , 465404 , 474378 , 477053 , 485179 , 489737 , 490757 , 499770 , 502755 , 504411 , 508168 , 508946 , 515010 , 515893 , 516789 , 516876 , 518212 , 523752 , 539885 , 548055 , 550662 , 557712 , 558164 , 560217 , 560767 , 561441 , 568051 , 568574 , 569557 , 569559 , 591351 , 598688 , 601955 , 602791 , 609847 , 618384 , 673661 , 687157 , 720089 , 736693 , 745866 , 747968 , 749498 , 764791 , 780188 , 791644 , 792794 , 802648 , 814084 , 816808 , 821541 , 824347 , 824636 , 824775 , 826437 , 826545 , 826810 );
Copy
5
140.43 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
391740
395452
398591
417100
417259
418224
438738
446921
447340
447800
448089
448440
451636
453346
465404
474378
477053
485179
489737
490757
499770
502755
504411
508168
508946
515010
515893
516789
516876
518212
523752
539885
548055
550662
557712
558164
560217
560767
561441
568051
568574
569557
569559
591351
598688
601955
602791
609847
618384
673661
687157
720089
736693
745866
747968
749498
764791
780188
791644
792794
802648
814084
816808
821541
824347
824636
824775
826437
826545
826810
]
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 (391740 , 395452 , 398591 , 417100 , 417259 , 418224 , 438738 , 446921 , 447340 , 447800 , 448089 , 448440 , 451636 , 453346 , 465404 , 474378 , 477053 , 485179 , 489737 , 490757 , 499770 , 502755 , 504411 , 508168 , 508946 , 515010 , 515893 , 516789 , 516876 , 518212 , 523752 , 539885 , 548055 , 550662 , 557712 , 558164 , 560217 , 560767 , 561441 , 568051 , 568574 , 569557 , 569559 , 591351 , 598688 , 601955 , 602791 , 609847 , 618384 , 673661 , 687157 , 720089 , 736693 , 745866 , 747968 , 749498 , 764791 , 780188 , 791644 , 792794 , 802648 , 814084 , 816808 , 821541 , 824347 , 824636 , 824775 , 826437 , 826545 , 826810 );
Copy