3
8.56 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
812079
561887
751722
753189
760120
396864
755424
619130
468162
396281
513675
512152
580670
609879
401721
400975
609886
451710
609881
512129
801008
739874
632084
669346
759483
736465
552292
752437
612231
386166
502205
565111
651290
624276
796663
781301
775892
745114
745434
453747
439427
599701
766519
532756
536249
615913
500519
698862
662047
801504
420354
437517
452824
738446
403703
442627
791604
739165
500538
469011
513081
387937
526980
587273
513655
537250
675380
639718
490453
]
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 (812079 , 561887 , 751722 , 753189 , 760120 , 396864 , 755424 , 619130 , 468162 , 396281 , 513675 , 512152 , 580670 , 609879 , 401721 , 400975 , 609886 , 451710 , 609881 , 512129 , 801008 , 739874 , 632084 , 669346 , 759483 , 736465 , 552292 , 752437 , 612231 , 386166 , 502205 , 565111 , 651290 , 624276 , 796663 , 781301 , 775892 , 745114 , 745434 , 453747 , 439427 , 599701 , 766519 , 532756 , 536249 , 615913 , 500519 , 698862 , 662047 , 801504 , 420354 , 437517 , 452824 , 738446 , 403703 , 442627 , 791604 , 739165 , 500538 , 469011 , 513081 , 387937 , 526980 , 587273 , 513655 , 537250 , 675380 , 639718 , 490453 );
Copy
4
2.16 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
386166
387937
396281
396864
400975
401721
403703
420354
437517
439427
442627
451710
452824
453747
468162
469011
490453
500519
500538
502205
512129
512152
513081
513655
513675
526980
532756
536249
537250
552292
561887
565111
580670
587273
599701
609879
609881
609886
612231
615913
619130
624276
632084
639718
651290
662047
669346
675380
698862
736465
738446
739165
739874
745114
745434
751722
752437
753189
755424
759483
760120
766519
775892
781301
791604
796663
801008
801504
812079
]
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 (386166 , 387937 , 396281 , 396864 , 400975 , 401721 , 403703 , 420354 , 437517 , 439427 , 442627 , 451710 , 452824 , 453747 , 468162 , 469011 , 490453 , 500519 , 500538 , 502205 , 512129 , 512152 , 513081 , 513655 , 513675 , 526980 , 532756 , 536249 , 537250 , 552292 , 561887 , 565111 , 580670 , 587273 , 599701 , 609879 , 609881 , 609886 , 612231 , 615913 , 619130 , 624276 , 632084 , 639718 , 651290 , 662047 , 669346 , 675380 , 698862 , 736465 , 738446 , 739165 , 739874 , 745114 , 745434 , 751722 , 752437 , 753189 , 755424 , 759483 , 760120 , 766519 , 775892 , 781301 , 791604 , 796663 , 801008 , 801504 , 812079 );
Copy
5
74.90 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
386166
387937
396281
396864
400975
401721
403703
420354
437517
439427
442627
451710
452824
453747
468162
469011
490453
500519
500538
502205
512129
512152
513081
513655
513675
526980
532756
536249
537250
552292
561887
565111
580670
587273
599701
609879
609881
609886
612231
615913
619130
624276
632084
639718
651290
662047
669346
675380
698862
736465
738446
739165
739874
745114
745434
751722
752437
753189
755424
759483
760120
766519
775892
781301
791604
796663
801008
801504
812079
]
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 (386166 , 387937 , 396281 , 396864 , 400975 , 401721 , 403703 , 420354 , 437517 , 439427 , 442627 , 451710 , 452824 , 453747 , 468162 , 469011 , 490453 , 500519 , 500538 , 502205 , 512129 , 512152 , 513081 , 513655 , 513675 , 526980 , 532756 , 536249 , 537250 , 552292 , 561887 , 565111 , 580670 , 587273 , 599701 , 609879 , 609881 , 609886 , 612231 , 615913 , 619130 , 624276 , 632084 , 639718 , 651290 , 662047 , 669346 , 675380 , 698862 , 736465 , 738446 , 739165 , 739874 , 745114 , 745434 , 751722 , 752437 , 753189 , 755424 , 759483 , 760120 , 766519 , 775892 , 781301 , 791604 , 796663 , 801008 , 801504 , 812079 );
Copy