4
9.99 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
648846
549848
428407
815019
486791
565165
601514
601575
736564
731437
442674
386320
796493
423006
435488
452587
546641
571216
631110
487706
497375
445687
503051
600334
609873
425473
534150
469507
648867
713192
650165
651051
600293
792624
755967
475487
421094
427983
554287
399595
524316
483978
530028
516484
537908
696203
537906
535417
420203
447959
535054
514579
704523
648868
438095
514594
604247
653489
419933
637422
516424
520770
532975
522976
484924
520763
488880
]
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 (648846 , 549848 , 428407 , 815019 , 486791 , 565165 , 601514 , 601575 , 736564 , 731437 , 442674 , 386320 , 796493 , 423006 , 435488 , 452587 , 546641 , 571216 , 631110 , 487706 , 497375 , 445687 , 503051 , 600334 , 609873 , 425473 , 534150 , 469507 , 648867 , 713192 , 650165 , 651051 , 600293 , 792624 , 755967 , 475487 , 421094 , 427983 , 554287 , 399595 , 524316 , 483978 , 530028 , 516484 , 537908 , 696203 , 537906 , 535417 , 420203 , 447959 , 535054 , 514579 , 704523 , 648868 , 438095 , 514594 , 604247 , 653489 , 419933 , 637422 , 516424 , 520770 , 532975 , 522976 , 484924 , 520763 , 488880 );
Copy
5
2.09 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
386320
399595
419933
420203
421094
423006
425473
427983
428407
435488
438095
442674
445687
447959
452587
469507
475487
483978
484924
486791
487706
488880
497375
503051
514579
514594
516424
516484
520763
520770
522976
524316
530028
532975
534150
535054
535417
537906
537908
546641
549848
554287
565165
571216
600293
600334
601514
601575
604247
609873
631110
637422
648846
648867
648868
650165
651051
653489
696203
704523
713192
731437
736564
755967
792624
796493
815019
]
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 (386320 , 399595 , 419933 , 420203 , 421094 , 423006 , 425473 , 427983 , 428407 , 435488 , 438095 , 442674 , 445687 , 447959 , 452587 , 469507 , 475487 , 483978 , 484924 , 486791 , 487706 , 488880 , 497375 , 503051 , 514579 , 514594 , 516424 , 516484 , 520763 , 520770 , 522976 , 524316 , 530028 , 532975 , 534150 , 535054 , 535417 , 537906 , 537908 , 546641 , 549848 , 554287 , 565165 , 571216 , 600293 , 600334 , 601514 , 601575 , 604247 , 609873 , 631110 , 637422 , 648846 , 648867 , 648868 , 650165 , 651051 , 653489 , 696203 , 704523 , 713192 , 731437 , 736564 , 755967 , 792624 , 796493 , 815019 );
Copy
6
116.29 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
386320
399595
419933
420203
421094
423006
425473
427983
428407
435488
438095
442674
445687
447959
452587
469507
475487
483978
484924
486791
487706
488880
497375
503051
514579
514594
516424
516484
520763
520770
522976
524316
530028
532975
534150
535054
535417
537906
537908
546641
549848
554287
565165
571216
600293
600334
601514
601575
604247
609873
631110
637422
648846
648867
648868
650165
651051
653489
696203
704523
713192
731437
736564
755967
792624
796493
815019
]
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 (386320 , 399595 , 419933 , 420203 , 421094 , 423006 , 425473 , 427983 , 428407 , 435488 , 438095 , 442674 , 445687 , 447959 , 452587 , 469507 , 475487 , 483978 , 484924 , 486791 , 487706 , 488880 , 497375 , 503051 , 514579 , 514594 , 516424 , 516484 , 520763 , 520770 , 522976 , 524316 , 530028 , 532975 , 534150 , 535054 , 535417 , 537906 , 537908 , 546641 , 549848 , 554287 , 565165 , 571216 , 600293 , 600334 , 601514 , 601575 , 604247 , 609873 , 631110 , 637422 , 648846 , 648867 , 648868 , 650165 , 651051 , 653489 , 696203 , 704523 , 713192 , 731437 , 736564 , 755967 , 792624 , 796493 , 815019 );
Copy