3
6.57 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
475682
566679
538950
538861
574238
661902
697301
672717
661906
673567
696587
538908
685305
475666
572583
538858
576562
576127
629311
599577
544304
544257
592539
790991
525747
507686
525752
475661
589700
549938
581392
618071
549307
677740
692231
566673
592516
607149
551836
590914
593310
691521
601695
580852
602180
646336
583914
628328
602461
592526
695196
511028
546023
572548
584315
572543
630288
538936
580921
690831
592477
581398
572603
692198
558172
541625
568601
576710
]
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 (475682 , 566679 , 538950 , 538861 , 574238 , 661902 , 697301 , 672717 , 661906 , 673567 , 696587 , 538908 , 685305 , 475666 , 572583 , 538858 , 576562 , 576127 , 629311 , 599577 , 544304 , 544257 , 592539 , 790991 , 525747 , 507686 , 525752 , 475661 , 589700 , 549938 , 581392 , 618071 , 549307 , 677740 , 692231 , 566673 , 592516 , 607149 , 551836 , 590914 , 593310 , 691521 , 601695 , 580852 , 602180 , 646336 , 583914 , 628328 , 602461 , 592526 , 695196 , 511028 , 546023 , 572548 , 584315 , 572543 , 630288 , 538936 , 580921 , 690831 , 592477 , 581398 , 572603 , 692198 , 558172 , 541625 , 568601 , 576710 );
Copy
4
2.54 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
475661
475666
475682
507686
511028
525747
525752
538858
538861
538908
538936
538950
541625
544257
544304
546023
549307
549938
551836
558172
566673
566679
568601
572543
572548
572583
572603
574238
576127
576562
576710
580852
580921
581392
581398
583914
584315
589700
590914
592477
592516
592526
592539
593310
599577
601695
602180
602461
607149
618071
628328
629311
630288
646336
661902
661906
672717
673567
677740
685305
690831
691521
692198
692231
695196
696587
697301
790991
]
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 (475661 , 475666 , 475682 , 507686 , 511028 , 525747 , 525752 , 538858 , 538861 , 538908 , 538936 , 538950 , 541625 , 544257 , 544304 , 546023 , 549307 , 549938 , 551836 , 558172 , 566673 , 566679 , 568601 , 572543 , 572548 , 572583 , 572603 , 574238 , 576127 , 576562 , 576710 , 580852 , 580921 , 581392 , 581398 , 583914 , 584315 , 589700 , 590914 , 592477 , 592516 , 592526 , 592539 , 593310 , 599577 , 601695 , 602180 , 602461 , 607149 , 618071 , 628328 , 629311 , 630288 , 646336 , 661902 , 661906 , 672717 , 673567 , 677740 , 685305 , 690831 , 691521 , 692198 , 692231 , 695196 , 696587 , 697301 , 790991 );
Copy
5
85.57 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
475661
475666
475682
507686
511028
525747
525752
538858
538861
538908
538936
538950
541625
544257
544304
546023
549307
549938
551836
558172
566673
566679
568601
572543
572548
572583
572603
574238
576127
576562
576710
580852
580921
581392
581398
583914
584315
589700
590914
592477
592516
592526
592539
593310
599577
601695
602180
602461
607149
618071
628328
629311
630288
646336
661902
661906
672717
673567
677740
685305
690831
691521
692198
692231
695196
696587
697301
790991
]
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 (475661 , 475666 , 475682 , 507686 , 511028 , 525747 , 525752 , 538858 , 538861 , 538908 , 538936 , 538950 , 541625 , 544257 , 544304 , 546023 , 549307 , 549938 , 551836 , 558172 , 566673 , 566679 , 568601 , 572543 , 572548 , 572583 , 572603 , 574238 , 576127 , 576562 , 576710 , 580852 , 580921 , 581392 , 581398 , 583914 , 584315 , 589700 , 590914 , 592477 , 592516 , 592526 , 592539 , 593310 , 599577 , 601695 , 602180 , 602461 , 607149 , 618071 , 628328 , 629311 , 630288 , 646336 , 661902 , 661906 , 672717 , 673567 , 677740 , 685305 , 690831 , 691521 , 692198 , 692231 , 695196 , 696587 , 697301 , 790991 );
Copy