4
12.72 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
586277
597157
805772
809346
772190
771881
612425
476378
481273
439750
447073
475011
504170
488059
491612
491694
513002
483875
484931
489226
523300
507374
459105
447859
506603
505320
468190
555113
549143
555480
558568
582944
713733
559998
606304
732159
434891
450894
472287
511548
512378
522488
482886
512403
516550
464123
563134
602508
622761
616401
597158
438363
453187
441016
423979
430559
422493
504929
513461
435462
431553
528327
572199
624480
484157
499826
622003
528682
569602
518421
]
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 (586277 , 597157 , 805772 , 809346 , 772190 , 771881 , 612425 , 476378 , 481273 , 439750 , 447073 , 475011 , 504170 , 488059 , 491612 , 491694 , 513002 , 483875 , 484931 , 489226 , 523300 , 507374 , 459105 , 447859 , 506603 , 505320 , 468190 , 555113 , 549143 , 555480 , 558568 , 582944 , 713733 , 559998 , 606304 , 732159 , 434891 , 450894 , 472287 , 511548 , 512378 , 522488 , 482886 , 512403 , 516550 , 464123 , 563134 , 602508 , 622761 , 616401 , 597158 , 438363 , 453187 , 441016 , 423979 , 430559 , 422493 , 504929 , 513461 , 435462 , 431553 , 528327 , 572199 , 624480 , 484157 , 499826 , 622003 , 528682 , 569602 , 518421 );
Copy
5
2.35 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
422493
423979
430559
431553
434891
435462
438363
439750
441016
447073
447859
450894
453187
459105
464123
468190
472287
475011
476378
481273
482886
483875
484157
484931
488059
489226
491612
491694
499826
504170
504929
505320
506603
507374
511548
512378
512403
513002
513461
516550
518421
522488
523300
528327
528682
549143
555113
555480
558568
559998
563134
569602
572199
582944
586277
597157
597158
602508
606304
612425
616401
622003
622761
624480
713733
732159
771881
772190
805772
809346
]
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 (422493 , 423979 , 430559 , 431553 , 434891 , 435462 , 438363 , 439750 , 441016 , 447073 , 447859 , 450894 , 453187 , 459105 , 464123 , 468190 , 472287 , 475011 , 476378 , 481273 , 482886 , 483875 , 484157 , 484931 , 488059 , 489226 , 491612 , 491694 , 499826 , 504170 , 504929 , 505320 , 506603 , 507374 , 511548 , 512378 , 512403 , 513002 , 513461 , 516550 , 518421 , 522488 , 523300 , 528327 , 528682 , 549143 , 555113 , 555480 , 558568 , 559998 , 563134 , 569602 , 572199 , 582944 , 586277 , 597157 , 597158 , 602508 , 606304 , 612425 , 616401 , 622003 , 622761 , 624480 , 713733 , 732159 , 771881 , 772190 , 805772 , 809346 );
Copy
6
75.14 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
422493
423979
430559
431553
434891
435462
438363
439750
441016
447073
447859
450894
453187
459105
464123
468190
472287
475011
476378
481273
482886
483875
484157
484931
488059
489226
491612
491694
499826
504170
504929
505320
506603
507374
511548
512378
512403
513002
513461
516550
518421
522488
523300
528327
528682
549143
555113
555480
558568
559998
563134
569602
572199
582944
586277
597157
597158
602508
606304
612425
616401
622003
622761
624480
713733
732159
771881
772190
805772
809346
]
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 (422493 , 423979 , 430559 , 431553 , 434891 , 435462 , 438363 , 439750 , 441016 , 447073 , 447859 , 450894 , 453187 , 459105 , 464123 , 468190 , 472287 , 475011 , 476378 , 481273 , 482886 , 483875 , 484157 , 484931 , 488059 , 489226 , 491612 , 491694 , 499826 , 504170 , 504929 , 505320 , 506603 , 507374 , 511548 , 512378 , 512403 , 513002 , 513461 , 516550 , 518421 , 522488 , 523300 , 528327 , 528682 , 549143 , 555113 , 555480 , 558568 , 559998 , 563134 , 569602 , 572199 , 582944 , 586277 , 597157 , 597158 , 602508 , 606304 , 612425 , 616401 , 622003 , 622761 , 624480 , 713733 , 732159 , 771881 , 772190 , 805772 , 809346 );
Copy