3
11.25 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
794223
738099
755353
760686
807830
427135
499493
577531
760211
419664
465467
405116
421303
460157
546838
558166
548859
553283
584021
589349
607509
590410
809076
812749
758079
454755
450287
452757
450289
705424
412914
814971
478933
457577
475296
510844
515034
509637
527476
563827
697457
607661
607640
618687
607716
618611
455259
535423
534049
554775
600453
415761
784794
473439
569133
607694
607552
633521
495660
598970
462392
448954
535540
528041
]
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 (794223 , 738099 , 755353 , 760686 , 807830 , 427135 , 499493 , 577531 , 760211 , 419664 , 465467 , 405116 , 421303 , 460157 , 546838 , 558166 , 548859 , 553283 , 584021 , 589349 , 607509 , 590410 , 809076 , 812749 , 758079 , 454755 , 450287 , 452757 , 450289 , 705424 , 412914 , 814971 , 478933 , 457577 , 475296 , 510844 , 515034 , 509637 , 527476 , 563827 , 697457 , 607661 , 607640 , 618687 , 607716 , 618611 , 455259 , 535423 , 534049 , 554775 , 600453 , 415761 , 784794 , 473439 , 569133 , 607694 , 607552 , 633521 , 495660 , 598970 , 462392 , 448954 , 535540 , 528041 );
Copy
4
2.61 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
405116
412914
415761
419664
421303
427135
448954
450287
450289
452757
454755
455259
457577
460157
462392
465467
473439
475296
478933
495660
499493
509637
510844
515034
527476
528041
534049
535423
535540
546838
548859
553283
554775
558166
563827
569133
577531
584021
589349
590410
598970
600453
607509
607552
607640
607661
607694
607716
618611
618687
633521
697457
705424
738099
755353
758079
760211
760686
784794
794223
807830
809076
812749
814971
]
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 (405116 , 412914 , 415761 , 419664 , 421303 , 427135 , 448954 , 450287 , 450289 , 452757 , 454755 , 455259 , 457577 , 460157 , 462392 , 465467 , 473439 , 475296 , 478933 , 495660 , 499493 , 509637 , 510844 , 515034 , 527476 , 528041 , 534049 , 535423 , 535540 , 546838 , 548859 , 553283 , 554775 , 558166 , 563827 , 569133 , 577531 , 584021 , 589349 , 590410 , 598970 , 600453 , 607509 , 607552 , 607640 , 607661 , 607694 , 607716 , 618611 , 618687 , 633521 , 697457 , 705424 , 738099 , 755353 , 758079 , 760211 , 760686 , 784794 , 794223 , 807830 , 809076 , 812749 , 814971 );
Copy
5
90.42 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
405116
412914
415761
419664
421303
427135
448954
450287
450289
452757
454755
455259
457577
460157
462392
465467
473439
475296
478933
495660
499493
509637
510844
515034
527476
528041
534049
535423
535540
546838
548859
553283
554775
558166
563827
569133
577531
584021
589349
590410
598970
600453
607509
607552
607640
607661
607694
607716
618611
618687
633521
697457
705424
738099
755353
758079
760211
760686
784794
794223
807830
809076
812749
814971
]
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 (405116 , 412914 , 415761 , 419664 , 421303 , 427135 , 448954 , 450287 , 450289 , 452757 , 454755 , 455259 , 457577 , 460157 , 462392 , 465467 , 473439 , 475296 , 478933 , 495660 , 499493 , 509637 , 510844 , 515034 , 527476 , 528041 , 534049 , 535423 , 535540 , 546838 , 548859 , 553283 , 554775 , 558166 , 563827 , 569133 , 577531 , 584021 , 589349 , 590410 , 598970 , 600453 , 607509 , 607552 , 607640 , 607661 , 607694 , 607716 , 618611 , 618687 , 633521 , 697457 , 705424 , 738099 , 755353 , 758079 , 760211 , 760686 , 784794 , 794223 , 807830 , 809076 , 812749 , 814971 );
Copy