3
10.09 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
416185
614095
547118
651603
683405
671640
494695
678922
668386
480460
524505
406817
397312
688105
650024
620770
668997
491393
714652
668377
490864
515291
816079
717860
480461
488697
604432
683878
596586
598537
404946
526901
696977
598013
6941
572003
815816
696969
106162
428381
578454
519472
548537
696973
481908
518541
423522
809894
452152
565186
562511
469852
706286
422686
593348
548548
548574
583677
669577
447458
609297
593487
424401
439465
]
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 (416185 , 614095 , 547118 , 651603 , 683405 , 671640 , 494695 , 678922 , 668386 , 480460 , 524505 , 406817 , 397312 , 688105 , 650024 , 620770 , 668997 , 491393 , 714652 , 668377 , 490864 , 515291 , 816079 , 717860 , 480461 , 488697 , 604432 , 683878 , 596586 , 598537 , 404946 , 526901 , 696977 , 598013 , 6941 , 572003 , 815816 , 696969 , 106162 , 428381 , 578454 , 519472 , 548537 , 696973 , 481908 , 518541 , 423522 , 809894 , 452152 , 565186 , 562511 , 469852 , 706286 , 422686 , 593348 , 548548 , 548574 , 583677 , 669577 , 447458 , 609297 , 593487 , 424401 , 439465 );
Copy
4
2.83 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
6941
106162
397312
404946
406817
416185
422686
423522
424401
428381
439465
447458
452152
469852
480460
480461
481908
488697
490864
491393
494695
515291
518541
519472
524505
526901
547118
548537
548548
548574
562511
565186
572003
578454
583677
593348
593487
596586
598013
598537
604432
609297
614095
620770
650024
651603
668377
668386
668997
669577
671640
678922
683405
683878
688105
696969
696973
696977
706286
714652
717860
809894
815816
816079
]
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 (6941 , 106162 , 397312 , 404946 , 406817 , 416185 , 422686 , 423522 , 424401 , 428381 , 439465 , 447458 , 452152 , 469852 , 480460 , 480461 , 481908 , 488697 , 490864 , 491393 , 494695 , 515291 , 518541 , 519472 , 524505 , 526901 , 547118 , 548537 , 548548 , 548574 , 562511 , 565186 , 572003 , 578454 , 583677 , 593348 , 593487 , 596586 , 598013 , 598537 , 604432 , 609297 , 614095 , 620770 , 650024 , 651603 , 668377 , 668386 , 668997 , 669577 , 671640 , 678922 , 683405 , 683878 , 688105 , 696969 , 696973 , 696977 , 706286 , 714652 , 717860 , 809894 , 815816 , 816079 );
Copy
5
80.60 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
6941
106162
397312
404946
406817
416185
422686
423522
424401
428381
439465
447458
452152
469852
480460
480461
481908
488697
490864
491393
494695
515291
518541
519472
524505
526901
547118
548537
548548
548574
562511
565186
572003
578454
583677
593348
593487
596586
598013
598537
604432
609297
614095
620770
650024
651603
668377
668386
668997
669577
671640
678922
683405
683878
688105
696969
696973
696977
706286
714652
717860
809894
815816
816079
]
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 (6941 , 106162 , 397312 , 404946 , 406817 , 416185 , 422686 , 423522 , 424401 , 428381 , 439465 , 447458 , 452152 , 469852 , 480460 , 480461 , 481908 , 488697 , 490864 , 491393 , 494695 , 515291 , 518541 , 519472 , 524505 , 526901 , 547118 , 548537 , 548548 , 548574 , 562511 , 565186 , 572003 , 578454 , 583677 , 593348 , 593487 , 596586 , 598013 , 598537 , 604432 , 609297 , 614095 , 620770 , 650024 , 651603 , 668377 , 668386 , 668997 , 669577 , 671640 , 678922 , 683405 , 683878 , 688105 , 696969 , 696973 , 696977 , 706286 , 714652 , 717860 , 809894 , 815816 , 816079 );
Copy