3
9.21 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
686741
761447
492285
826417
740280
748429
447603
708057
602547
559337
480644
503511
452368
526398
652963
708045
452365
559316
761441
817350
778222
512434
615156
717782
433928
398331
576511
734013
705874
790729
583775
762045
736880
559319
522124
741673
539524
452372
508166
609343
748721
583068
588326
452367
441572
497202
479955
557028
744853
621304
741677
557605
507647
492466
523088
498670
571257
470903
520040
741932
562818
567051
532380
501228
526619
558566
526594
525736
492169
]
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 (686741 , 761447 , 492285 , 826417 , 740280 , 748429 , 447603 , 708057 , 602547 , 559337 , 480644 , 503511 , 452368 , 526398 , 652963 , 708045 , 452365 , 559316 , 761441 , 817350 , 778222 , 512434 , 615156 , 717782 , 433928 , 398331 , 576511 , 734013 , 705874 , 790729 , 583775 , 762045 , 736880 , 559319 , 522124 , 741673 , 539524 , 452372 , 508166 , 609343 , 748721 , 583068 , 588326 , 452367 , 441572 , 497202 , 479955 , 557028 , 744853 , 621304 , 741677 , 557605 , 507647 , 492466 , 523088 , 498670 , 571257 , 470903 , 520040 , 741932 , 562818 , 567051 , 532380 , 501228 , 526619 , 558566 , 526594 , 525736 , 492169 );
Copy
4
2.58 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
398331
433928
441572
447603
452365
452367
452368
452372
470903
479955
480644
492169
492285
492466
497202
498670
501228
503511
507647
508166
512434
520040
522124
523088
525736
526398
526594
526619
532380
539524
557028
557605
558566
559316
559319
559337
562818
567051
571257
576511
583068
583775
588326
602547
609343
615156
621304
652963
686741
705874
708045
708057
717782
734013
736880
740280
741673
741677
741932
744853
748429
748721
761447
762045
778222
790729
817350
826417
]
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 (398331 , 433928 , 441572 , 447603 , 452365 , 452367 , 452368 , 452372 , 470903 , 479955 , 480644 , 492169 , 492285 , 492466 , 497202 , 498670 , 501228 , 503511 , 507647 , 508166 , 512434 , 520040 , 522124 , 523088 , 525736 , 526398 , 526594 , 526619 , 532380 , 539524 , 557028 , 557605 , 558566 , 559316 , 559319 , 559337 , 562818 , 567051 , 571257 , 576511 , 583068 , 583775 , 588326 , 602547 , 609343 , 615156 , 621304 , 652963 , 686741 , 705874 , 708045 , 708057 , 717782 , 734013 , 736880 , 740280 , 741673 , 741677 , 741932 , 744853 , 748429 , 748721 , 761447 , 762045 , 778222 , 790729 , 817350 , 826417 );
Copy
5
87.00 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
398331
433928
441572
447603
452365
452367
452368
452372
470903
479955
480644
492169
492285
492466
497202
498670
501228
503511
507647
508166
512434
520040
522124
523088
525736
526398
526594
526619
532380
539524
557028
557605
558566
559316
559319
559337
562818
567051
571257
576511
583068
583775
588326
602547
609343
615156
621304
652963
686741
705874
708045
708057
717782
734013
736880
740280
741673
741677
741932
744853
748429
748721
761447
762045
778222
790729
817350
826417
]
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 (398331 , 433928 , 441572 , 447603 , 452365 , 452367 , 452368 , 452372 , 470903 , 479955 , 480644 , 492169 , 492285 , 492466 , 497202 , 498670 , 501228 , 503511 , 507647 , 508166 , 512434 , 520040 , 522124 , 523088 , 525736 , 526398 , 526594 , 526619 , 532380 , 539524 , 557028 , 557605 , 558566 , 559316 , 559319 , 559337 , 562818 , 567051 , 571257 , 576511 , 583068 , 583775 , 588326 , 602547 , 609343 , 615156 , 621304 , 652963 , 686741 , 705874 , 708045 , 708057 , 717782 , 734013 , 736880 , 740280 , 741673 , 741677 , 741932 , 744853 , 748429 , 748721 , 761447 , 762045 , 778222 , 790729 , 817350 , 826417 );
Copy