3
12.68 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
759671
622928
812215
749003
792940
701465
826273
725287
605196
576718
457975
743065
739532
463087
548045
770101
705793
544706
811533
804257
818960
824790
719849
749621
814402
385171
484532
733317
420903
497829
500883
794421
604045
705031
627126
749845
819653
702094
709564
766611
796495
729933
808542
731763
445714
479691
599327
596648
794416
781676
451519
553299
624391
431664
407424
443836
566057
566232
599543
598753
773257
459130
497225
504423
512533
624834
628380
662396
632563
]
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 (759671 , 622928 , 812215 , 749003 , 792940 , 701465 , 826273 , 725287 , 605196 , 576718 , 457975 , 743065 , 739532 , 463087 , 548045 , 770101 , 705793 , 544706 , 811533 , 804257 , 818960 , 824790 , 719849 , 749621 , 814402 , 385171 , 484532 , 733317 , 420903 , 497829 , 500883 , 794421 , 604045 , 705031 , 627126 , 749845 , 819653 , 702094 , 709564 , 766611 , 796495 , 729933 , 808542 , 731763 , 445714 , 479691 , 599327 , 596648 , 794416 , 781676 , 451519 , 553299 , 624391 , 431664 , 407424 , 443836 , 566057 , 566232 , 599543 , 598753 , 773257 , 459130 , 497225 , 504423 , 512533 , 624834 , 628380 , 662396 , 632563 );
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
385171
407424
420903
431664
443836
445714
451519
457975
459130
463087
479691
484532
497225
497829
500883
504423
512533
544706
548045
553299
566057
566232
576718
596648
598753
599327
599543
604045
605196
622928
624391
624834
627126
628380
632563
662396
701465
702094
705031
705793
709564
719849
725287
729933
731763
733317
739532
743065
749003
749621
749845
759671
766611
770101
773257
781676
792940
794416
794421
796495
804257
808542
811533
812215
814402
818960
819653
824790
826273
]
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 (385171 , 407424 , 420903 , 431664 , 443836 , 445714 , 451519 , 457975 , 459130 , 463087 , 479691 , 484532 , 497225 , 497829 , 500883 , 504423 , 512533 , 544706 , 548045 , 553299 , 566057 , 566232 , 576718 , 596648 , 598753 , 599327 , 599543 , 604045 , 605196 , 622928 , 624391 , 624834 , 627126 , 628380 , 632563 , 662396 , 701465 , 702094 , 705031 , 705793 , 709564 , 719849 , 725287 , 729933 , 731763 , 733317 , 739532 , 743065 , 749003 , 749621 , 749845 , 759671 , 766611 , 770101 , 773257 , 781676 , 792940 , 794416 , 794421 , 796495 , 804257 , 808542 , 811533 , 812215 , 814402 , 818960 , 819653 , 824790 , 826273 );
Copy
5
83.86 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
385171
407424
420903
431664
443836
445714
451519
457975
459130
463087
479691
484532
497225
497829
500883
504423
512533
544706
548045
553299
566057
566232
576718
596648
598753
599327
599543
604045
605196
622928
624391
624834
627126
628380
632563
662396
701465
702094
705031
705793
709564
719849
725287
729933
731763
733317
739532
743065
749003
749621
749845
759671
766611
770101
773257
781676
792940
794416
794421
796495
804257
808542
811533
812215
814402
818960
819653
824790
826273
]
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 (385171 , 407424 , 420903 , 431664 , 443836 , 445714 , 451519 , 457975 , 459130 , 463087 , 479691 , 484532 , 497225 , 497829 , 500883 , 504423 , 512533 , 544706 , 548045 , 553299 , 566057 , 566232 , 576718 , 596648 , 598753 , 599327 , 599543 , 604045 , 605196 , 622928 , 624391 , 624834 , 627126 , 628380 , 632563 , 662396 , 701465 , 702094 , 705031 , 705793 , 709564 , 719849 , 725287 , 729933 , 731763 , 733317 , 739532 , 743065 , 749003 , 749621 , 749845 , 759671 , 766611 , 770101 , 773257 , 781676 , 792940 , 794416 , 794421 , 796495 , 804257 , 808542 , 811533 , 812215 , 814402 , 818960 , 819653 , 824790 , 826273 );
Copy