3
14.80 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
689634
573597
592408
589731
607325
426062
515433
485221
487144
493288
483324
526752
528586
569132
571199
572840
555991
570227
555291
573810
573909
547919
562271
606202
626760
606533
626139
599272
475194
486901
506562
524792
529074
529345
505679
527604
562302
571674
551069
580701
671395
597532
607083
611741
526495
572059
566566
572418
574782
587875
594869
620280
619186
621407
507235
567024
576308
670233
578084
636250
591202
484870
596500
618874
619407
558432
]
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 (689634 , 573597 , 592408 , 589731 , 607325 , 426062 , 515433 , 485221 , 487144 , 493288 , 483324 , 526752 , 528586 , 569132 , 571199 , 572840 , 555991 , 570227 , 555291 , 573810 , 573909 , 547919 , 562271 , 606202 , 626760 , 606533 , 626139 , 599272 , 475194 , 486901 , 506562 , 524792 , 529074 , 529345 , 505679 , 527604 , 562302 , 571674 , 551069 , 580701 , 671395 , 597532 , 607083 , 611741 , 526495 , 572059 , 566566 , 572418 , 574782 , 587875 , 594869 , 620280 , 619186 , 621407 , 507235 , 567024 , 576308 , 670233 , 578084 , 636250 , 591202 , 484870 , 596500 , 618874 , 619407 , 558432 );
Copy
4
2.72 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
426062
475194
483324
484870
485221
486901
487144
493288
505679
506562
507235
515433
524792
526495
526752
527604
528586
529074
529345
547919
551069
555291
555991
558432
562271
562302
566566
567024
569132
570227
571199
571674
572059
572418
572840
573597
573810
573909
574782
576308
578084
580701
587875
589731
591202
592408
594869
596500
597532
599272
606202
606533
607083
607325
611741
618874
619186
619407
620280
621407
626139
626760
636250
670233
671395
689634
]
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 (426062 , 475194 , 483324 , 484870 , 485221 , 486901 , 487144 , 493288 , 505679 , 506562 , 507235 , 515433 , 524792 , 526495 , 526752 , 527604 , 528586 , 529074 , 529345 , 547919 , 551069 , 555291 , 555991 , 558432 , 562271 , 562302 , 566566 , 567024 , 569132 , 570227 , 571199 , 571674 , 572059 , 572418 , 572840 , 573597 , 573810 , 573909 , 574782 , 576308 , 578084 , 580701 , 587875 , 589731 , 591202 , 592408 , 594869 , 596500 , 597532 , 599272 , 606202 , 606533 , 607083 , 607325 , 611741 , 618874 , 619186 , 619407 , 620280 , 621407 , 626139 , 626760 , 636250 , 670233 , 671395 , 689634 );
Copy
5
104.97 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
426062
475194
483324
484870
485221
486901
487144
493288
505679
506562
507235
515433
524792
526495
526752
527604
528586
529074
529345
547919
551069
555291
555991
558432
562271
562302
566566
567024
569132
570227
571199
571674
572059
572418
572840
573597
573810
573909
574782
576308
578084
580701
587875
589731
591202
592408
594869
596500
597532
599272
606202
606533
607083
607325
611741
618874
619186
619407
620280
621407
626139
626760
636250
670233
671395
689634
]
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 (426062 , 475194 , 483324 , 484870 , 485221 , 486901 , 487144 , 493288 , 505679 , 506562 , 507235 , 515433 , 524792 , 526495 , 526752 , 527604 , 528586 , 529074 , 529345 , 547919 , 551069 , 555291 , 555991 , 558432 , 562271 , 562302 , 566566 , 567024 , 569132 , 570227 , 571199 , 571674 , 572059 , 572418 , 572840 , 573597 , 573810 , 573909 , 574782 , 576308 , 578084 , 580701 , 587875 , 589731 , 591202 , 592408 , 594869 , 596500 , 597532 , 599272 , 606202 , 606533 , 607083 , 607325 , 611741 , 618874 , 619186 , 619407 , 620280 , 621407 , 626139 , 626760 , 636250 , 670233 , 671395 , 689634 );
Copy