3
11.30 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
456966
507156
567583
571684
574035
585300
587661
596910
620042
457391
481043
487712
491947
516387
494584
543359
621786
565995
419245
457203
475465
500536
570177
583072
578733
610587
610203
735869
450228
499754
779577
494920
417493
523480
520485
528445
565788
565931
589600
446851
448035
443792
517240
522294
691616
788866
342206
563312
788861
606567
612087
518604
528712
491584
698609
594580
566993
494036
534837
556002
435634
515122
620754
550882
421030
501259
]
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 (456966 , 507156 , 567583 , 571684 , 574035 , 585300 , 587661 , 596910 , 620042 , 457391 , 481043 , 487712 , 491947 , 516387 , 494584 , 543359 , 621786 , 565995 , 419245 , 457203 , 475465 , 500536 , 570177 , 583072 , 578733 , 610587 , 610203 , 735869 , 450228 , 499754 , 779577 , 494920 , 417493 , 523480 , 520485 , 528445 , 565788 , 565931 , 589600 , 446851 , 448035 , 443792 , 517240 , 522294 , 691616 , 788866 , 342206 , 563312 , 788861 , 606567 , 612087 , 518604 , 528712 , 491584 , 698609 , 594580 , 566993 , 494036 , 534837 , 556002 , 435634 , 515122 , 620754 , 550882 , 421030 , 501259 );
Copy
4
3.13 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
342206
417493
419245
421030
435634
443792
446851
448035
450228
456966
457203
457391
475465
481043
487712
491584
491947
494036
494584
494920
499754
500536
501259
507156
515122
516387
517240
518604
520485
522294
523480
528445
528712
534837
543359
550882
556002
563312
565788
565931
565995
566993
567583
570177
571684
574035
578733
583072
585300
587661
589600
594580
596910
606567
610203
610587
612087
620042
620754
621786
691616
698609
735869
779577
788861
788866
]
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 (342206 , 417493 , 419245 , 421030 , 435634 , 443792 , 446851 , 448035 , 450228 , 456966 , 457203 , 457391 , 475465 , 481043 , 487712 , 491584 , 491947 , 494036 , 494584 , 494920 , 499754 , 500536 , 501259 , 507156 , 515122 , 516387 , 517240 , 518604 , 520485 , 522294 , 523480 , 528445 , 528712 , 534837 , 543359 , 550882 , 556002 , 563312 , 565788 , 565931 , 565995 , 566993 , 567583 , 570177 , 571684 , 574035 , 578733 , 583072 , 585300 , 587661 , 589600 , 594580 , 596910 , 606567 , 610203 , 610587 , 612087 , 620042 , 620754 , 621786 , 691616 , 698609 , 735869 , 779577 , 788861 , 788866 );
Copy
5
99.47 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
342206
417493
419245
421030
435634
443792
446851
448035
450228
456966
457203
457391
475465
481043
487712
491584
491947
494036
494584
494920
499754
500536
501259
507156
515122
516387
517240
518604
520485
522294
523480
528445
528712
534837
543359
550882
556002
563312
565788
565931
565995
566993
567583
570177
571684
574035
578733
583072
585300
587661
589600
594580
596910
606567
610203
610587
612087
620042
620754
621786
691616
698609
735869
779577
788861
788866
]
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 (342206 , 417493 , 419245 , 421030 , 435634 , 443792 , 446851 , 448035 , 450228 , 456966 , 457203 , 457391 , 475465 , 481043 , 487712 , 491584 , 491947 , 494036 , 494584 , 494920 , 499754 , 500536 , 501259 , 507156 , 515122 , 516387 , 517240 , 518604 , 520485 , 522294 , 523480 , 528445 , 528712 , 534837 , 543359 , 550882 , 556002 , 563312 , 565788 , 565931 , 565995 , 566993 , 567583 , 570177 , 571684 , 574035 , 578733 , 583072 , 585300 , 587661 , 589600 , 594580 , 596910 , 606567 , 610203 , 610587 , 612087 , 620042 , 620754 , 621786 , 691616 , 698609 , 735869 , 779577 , 788861 , 788866 );
Copy