3
10.88 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
555820
560319
479285
640682
548887
745281
578104
381873
426415
569777
725474
548885
542347
634608
782776
699480
431495
381869
818812
456363
521223
616400
725507
735493
740620
460974
426467
704180
799896
745310
426736
533550
543736
555829
542370
772032
756493
534462
614654
107651
639982
475586
479280
419836
450473
491444
542422
745307
640685
446090
517870
509046
487907
532898
678942
576519
521201
486004
515919
515378
515415
610734
465933
610692
499787
467613
593863
559111
412583
696606
512059
536691
545480
]
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 (555820 , 560319 , 479285 , 640682 , 548887 , 745281 , 578104 , 381873 , 426415 , 569777 , 725474 , 548885 , 542347 , 634608 , 782776 , 699480 , 431495 , 381869 , 818812 , 456363 , 521223 , 616400 , 725507 , 735493 , 740620 , 460974 , 426467 , 704180 , 799896 , 745310 , 426736 , 533550 , 543736 , 555829 , 542370 , 772032 , 756493 , 534462 , 614654 , 107651 , 639982 , 475586 , 479280 , 419836 , 450473 , 491444 , 542422 , 745307 , 640685 , 446090 , 517870 , 509046 , 487907 , 532898 , 678942 , 576519 , 521201 , 486004 , 515919 , 515378 , 515415 , 610734 , 465933 , 610692 , 499787 , 467613 , 593863 , 559111 , 412583 , 696606 , 512059 , 536691 , 545480 );
Copy
4
2.86 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
107651
381869
381873
412583
419836
426415
426467
426736
431495
446090
450473
456363
460974
465933
467613
475586
479280
479285
486004
487907
491444
499787
509046
512059
515378
515415
515919
517870
521201
521223
532898
533550
534462
536691
542347
542370
542422
543736
545480
548885
548887
555820
555829
559111
560319
569777
576519
578104
593863
610692
610734
614654
616400
634608
639982
640682
640685
678942
696606
699480
704180
725474
725507
735493
740620
745281
745307
745310
756493
772032
782776
799896
818812
]
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 (107651 , 381869 , 381873 , 412583 , 419836 , 426415 , 426467 , 426736 , 431495 , 446090 , 450473 , 456363 , 460974 , 465933 , 467613 , 475586 , 479280 , 479285 , 486004 , 487907 , 491444 , 499787 , 509046 , 512059 , 515378 , 515415 , 515919 , 517870 , 521201 , 521223 , 532898 , 533550 , 534462 , 536691 , 542347 , 542370 , 542422 , 543736 , 545480 , 548885 , 548887 , 555820 , 555829 , 559111 , 560319 , 569777 , 576519 , 578104 , 593863 , 610692 , 610734 , 614654 , 616400 , 634608 , 639982 , 640682 , 640685 , 678942 , 696606 , 699480 , 704180 , 725474 , 725507 , 735493 , 740620 , 745281 , 745307 , 745310 , 756493 , 772032 , 782776 , 799896 , 818812 );
Copy
5
111.03 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
107651
381869
381873
412583
419836
426415
426467
426736
431495
446090
450473
456363
460974
465933
467613
475586
479280
479285
486004
487907
491444
499787
509046
512059
515378
515415
515919
517870
521201
521223
532898
533550
534462
536691
542347
542370
542422
543736
545480
548885
548887
555820
555829
559111
560319
569777
576519
578104
593863
610692
610734
614654
616400
634608
639982
640682
640685
678942
696606
699480
704180
725474
725507
735493
740620
745281
745307
745310
756493
772032
782776
799896
818812
]
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 (107651 , 381869 , 381873 , 412583 , 419836 , 426415 , 426467 , 426736 , 431495 , 446090 , 450473 , 456363 , 460974 , 465933 , 467613 , 475586 , 479280 , 479285 , 486004 , 487907 , 491444 , 499787 , 509046 , 512059 , 515378 , 515415 , 515919 , 517870 , 521201 , 521223 , 532898 , 533550 , 534462 , 536691 , 542347 , 542370 , 542422 , 543736 , 545480 , 548885 , 548887 , 555820 , 555829 , 559111 , 560319 , 569777 , 576519 , 578104 , 593863 , 610692 , 610734 , 614654 , 616400 , 634608 , 639982 , 640682 , 640685 , 678942 , 696606 , 699480 , 704180 , 725474 , 725507 , 735493 , 740620 , 745281 , 745307 , 745310 , 756493 , 772032 , 782776 , 799896 , 818812 );
Copy