3
14.14 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
575762
546004
573782
696308
548654
576079
592314
592342
625365
597793
807506
469914
472309
487027
658418
656710
659564
659579
558437
654479
484695
576023
508835
527886
575747
656753
606695
575802
658661
576108
516823
490933
465933
439748
655694
558338
490296
512411
654753
788299
658564
439583
501427
657692
611989
611984
472128
466778
470628
512005
691713
486583
470614
496599
598204
528081
443792
511938
610695
503000
587852
462289
527032
523678
522526
542748
504158
524613
627745
595862
]
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 (575762 , 546004 , 573782 , 696308 , 548654 , 576079 , 592314 , 592342 , 625365 , 597793 , 807506 , 469914 , 472309 , 487027 , 658418 , 656710 , 659564 , 659579 , 558437 , 654479 , 484695 , 576023 , 508835 , 527886 , 575747 , 656753 , 606695 , 575802 , 658661 , 576108 , 516823 , 490933 , 465933 , 439748 , 655694 , 558338 , 490296 , 512411 , 654753 , 788299 , 658564 , 439583 , 501427 , 657692 , 611989 , 611984 , 472128 , 466778 , 470628 , 512005 , 691713 , 486583 , 470614 , 496599 , 598204 , 528081 , 443792 , 511938 , 610695 , 503000 , 587852 , 462289 , 527032 , 523678 , 522526 , 542748 , 504158 , 524613 , 627745 , 595862 );
Copy
4
2.59 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
439583
439748
443792
462289
465933
466778
469914
470614
470628
472128
472309
484695
486583
487027
490296
490933
496599
501427
503000
504158
508835
511938
512005
512411
516823
522526
523678
524613
527032
527886
528081
542748
546004
548654
558338
558437
573782
575747
575762
575802
576023
576079
576108
587852
592314
592342
595862
597793
598204
606695
610695
611984
611989
625365
627745
654479
654753
655694
656710
656753
657692
658418
658564
658661
659564
659579
691713
696308
788299
807506
]
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 (439583 , 439748 , 443792 , 462289 , 465933 , 466778 , 469914 , 470614 , 470628 , 472128 , 472309 , 484695 , 486583 , 487027 , 490296 , 490933 , 496599 , 501427 , 503000 , 504158 , 508835 , 511938 , 512005 , 512411 , 516823 , 522526 , 523678 , 524613 , 527032 , 527886 , 528081 , 542748 , 546004 , 548654 , 558338 , 558437 , 573782 , 575747 , 575762 , 575802 , 576023 , 576079 , 576108 , 587852 , 592314 , 592342 , 595862 , 597793 , 598204 , 606695 , 610695 , 611984 , 611989 , 625365 , 627745 , 654479 , 654753 , 655694 , 656710 , 656753 , 657692 , 658418 , 658564 , 658661 , 659564 , 659579 , 691713 , 696308 , 788299 , 807506 );
Copy
5
77.78 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
439583
439748
443792
462289
465933
466778
469914
470614
470628
472128
472309
484695
486583
487027
490296
490933
496599
501427
503000
504158
508835
511938
512005
512411
516823
522526
523678
524613
527032
527886
528081
542748
546004
548654
558338
558437
573782
575747
575762
575802
576023
576079
576108
587852
592314
592342
595862
597793
598204
606695
610695
611984
611989
625365
627745
654479
654753
655694
656710
656753
657692
658418
658564
658661
659564
659579
691713
696308
788299
807506
]
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 (439583 , 439748 , 443792 , 462289 , 465933 , 466778 , 469914 , 470614 , 470628 , 472128 , 472309 , 484695 , 486583 , 487027 , 490296 , 490933 , 496599 , 501427 , 503000 , 504158 , 508835 , 511938 , 512005 , 512411 , 516823 , 522526 , 523678 , 524613 , 527032 , 527886 , 528081 , 542748 , 546004 , 548654 , 558338 , 558437 , 573782 , 575747 , 575762 , 575802 , 576023 , 576079 , 576108 , 587852 , 592314 , 592342 , 595862 , 597793 , 598204 , 606695 , 610695 , 611984 , 611989 , 625365 , 627745 , 654479 , 654753 , 655694 , 656710 , 656753 , 657692 , 658418 , 658564 , 658661 , 659564 , 659579 , 691713 , 696308 , 788299 , 807506 );
Copy