3
11.98 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
610958
493493
578552
569110
615721
484233
498483
486162
545849
533390
687094
583148
578790
555847
616673
734437
766738
480987
555821
213057
520186
582077
680468
614607
626851
626207
626850
522946
506747
552955
631468
624041
575169
526913
552659
552680
474264
510371
513558
627097
720072
791738
585454
632818
537250
485055
552664
545851
536451
553000
527315
422958
532739
521515
555798
598233
498722
591749
597919
525626
563026
540572
521002
527011
547651
]
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 (610958 , 493493 , 578552 , 569110 , 615721 , 484233 , 498483 , 486162 , 545849 , 533390 , 687094 , 583148 , 578790 , 555847 , 616673 , 734437 , 766738 , 480987 , 555821 , 213057 , 520186 , 582077 , 680468 , 614607 , 626851 , 626207 , 626850 , 522946 , 506747 , 552955 , 631468 , 624041 , 575169 , 526913 , 552659 , 552680 , 474264 , 510371 , 513558 , 627097 , 720072 , 791738 , 585454 , 632818 , 537250 , 485055 , 552664 , 545851 , 536451 , 553000 , 527315 , 422958 , 532739 , 521515 , 555798 , 598233 , 498722 , 591749 , 597919 , 525626 , 563026 , 540572 , 521002 , 527011 , 547651 );
Copy
4
3.13 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
213057
422958
474264
480987
484233
485055
486162
493493
498483
498722
506747
510371
513558
520186
521002
521515
522946
525626
526913
527011
527315
532739
533390
536451
537250
540572
545849
545851
547651
552659
552664
552680
552955
553000
555798
555821
555847
563026
569110
575169
578552
578790
582077
583148
585454
591749
597919
598233
610958
614607
615721
616673
624041
626207
626850
627097
631468
632818
680468
687094
720072
734437
766738
791738
]
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 (213057 , 422958 , 474264 , 480987 , 484233 , 485055 , 486162 , 493493 , 498483 , 498722 , 506747 , 510371 , 513558 , 520186 , 521002 , 521515 , 522946 , 525626 , 526913 , 527011 , 527315 , 532739 , 533390 , 536451 , 537250 , 540572 , 545849 , 545851 , 547651 , 552659 , 552664 , 552680 , 552955 , 553000 , 555798 , 555821 , 555847 , 563026 , 569110 , 575169 , 578552 , 578790 , 582077 , 583148 , 585454 , 591749 , 597919 , 598233 , 610958 , 614607 , 615721 , 616673 , 624041 , 626207 , 626850 , 627097 , 631468 , 632818 , 680468 , 687094 , 720072 , 734437 , 766738 , 791738 );
Copy
5
75.52 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
213057
422958
474264
480987
484233
485055
486162
493493
498483
498722
506747
510371
513558
520186
521002
521515
522946
525626
526913
527011
527315
532739
533390
536451
537250
540572
545849
545851
547651
552659
552664
552680
552955
553000
555798
555821
555847
563026
569110
575169
578552
578790
582077
583148
585454
591749
597919
598233
610958
614607
615721
616673
624041
626207
626850
627097
631468
632818
680468
687094
720072
734437
766738
791738
]
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 (213057 , 422958 , 474264 , 480987 , 484233 , 485055 , 486162 , 493493 , 498483 , 498722 , 506747 , 510371 , 513558 , 520186 , 521002 , 521515 , 522946 , 525626 , 526913 , 527011 , 527315 , 532739 , 533390 , 536451 , 537250 , 540572 , 545849 , 545851 , 547651 , 552659 , 552664 , 552680 , 552955 , 553000 , 555798 , 555821 , 555847 , 563026 , 569110 , 575169 , 578552 , 578790 , 582077 , 583148 , 585454 , 591749 , 597919 , 598233 , 610958 , 614607 , 615721 , 616673 , 624041 , 626207 , 626850 , 627097 , 631468 , 632818 , 680468 , 687094 , 720072 , 734437 , 766738 , 791738 );
Copy