3
15.26 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
584451
382140
388957
442553
413161
460629
457975
483564
517826
526266
524504
538608
480204
546810
564668
689650
712820
557563
595029
605498
722918
384306
478471
481248
518201
518635
495679
499009
507590
518733
489583
505254
454329
469345
485180
526601
528399
687094
567162
577370
425960
426926
437561
218026
491326
496740
515893
461906
580950
662048
433047
463087
484398
488120
570050
484801
646214
582227
530661
586553
513506
444795
523172
578500
554790
494764
522382
]
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 (584451 , 382140 , 388957 , 442553 , 413161 , 460629 , 457975 , 483564 , 517826 , 526266 , 524504 , 538608 , 480204 , 546810 , 564668 , 689650 , 712820 , 557563 , 595029 , 605498 , 722918 , 384306 , 478471 , 481248 , 518201 , 518635 , 495679 , 499009 , 507590 , 518733 , 489583 , 505254 , 454329 , 469345 , 485180 , 526601 , 528399 , 687094 , 567162 , 577370 , 425960 , 426926 , 437561 , 218026 , 491326 , 496740 , 515893 , 461906 , 580950 , 662048 , 433047 , 463087 , 484398 , 488120 , 570050 , 484801 , 646214 , 582227 , 530661 , 586553 , 513506 , 444795 , 523172 , 578500 , 554790 , 494764 , 522382 );
Copy
4
2.08 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
218026
382140
384306
388957
413161
425960
426926
433047
437561
442553
444795
454329
457975
460629
461906
463087
469345
478471
480204
481248
483564
484398
484801
485180
488120
489583
491326
494764
495679
496740
499009
505254
507590
513506
515893
517826
518201
518635
518733
522382
523172
524504
526266
526601
528399
530661
538608
546810
554790
557563
564668
567162
570050
577370
578500
580950
582227
584451
586553
595029
605498
646214
662048
687094
689650
712820
722918
]
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 (218026 , 382140 , 384306 , 388957 , 413161 , 425960 , 426926 , 433047 , 437561 , 442553 , 444795 , 454329 , 457975 , 460629 , 461906 , 463087 , 469345 , 478471 , 480204 , 481248 , 483564 , 484398 , 484801 , 485180 , 488120 , 489583 , 491326 , 494764 , 495679 , 496740 , 499009 , 505254 , 507590 , 513506 , 515893 , 517826 , 518201 , 518635 , 518733 , 522382 , 523172 , 524504 , 526266 , 526601 , 528399 , 530661 , 538608 , 546810 , 554790 , 557563 , 564668 , 567162 , 570050 , 577370 , 578500 , 580950 , 582227 , 584451 , 586553 , 595029 , 605498 , 646214 , 662048 , 687094 , 689650 , 712820 , 722918 );
Copy
5
79.30 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
218026
382140
384306
388957
413161
425960
426926
433047
437561
442553
444795
454329
457975
460629
461906
463087
469345
478471
480204
481248
483564
484398
484801
485180
488120
489583
491326
494764
495679
496740
499009
505254
507590
513506
515893
517826
518201
518635
518733
522382
523172
524504
526266
526601
528399
530661
538608
546810
554790
557563
564668
567162
570050
577370
578500
580950
582227
584451
586553
595029
605498
646214
662048
687094
689650
712820
722918
]
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 (218026 , 382140 , 384306 , 388957 , 413161 , 425960 , 426926 , 433047 , 437561 , 442553 , 444795 , 454329 , 457975 , 460629 , 461906 , 463087 , 469345 , 478471 , 480204 , 481248 , 483564 , 484398 , 484801 , 485180 , 488120 , 489583 , 491326 , 494764 , 495679 , 496740 , 499009 , 505254 , 507590 , 513506 , 515893 , 517826 , 518201 , 518635 , 518733 , 522382 , 523172 , 524504 , 526266 , 526601 , 528399 , 530661 , 538608 , 546810 , 554790 , 557563 , 564668 , 567162 , 570050 , 577370 , 578500 , 580950 , 582227 , 584451 , 586553 , 595029 , 605498 , 646214 , 662048 , 687094 , 689650 , 712820 , 722918 );
Copy