3
10.19 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
560272
568283
649838
650020
679350
682909
555821
567134
574869
593835
597227
604608
466148
383597
417775
540791
488751
508133
508189
517073
549584
579417
541592
582789
680375
575716
584709
593935
605418
591428
601616
613936
604370
504780
487719
606016
477355
522973
526353
513126
543304
564563
565471
580256
658314
586899
598605
524508
568999
581112
571561
658269
575445
594819
622767
602569
591203
613985
566248
556741
559725
650155
559183
625404
591896
]
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 (560272 , 568283 , 649838 , 650020 , 679350 , 682909 , 555821 , 567134 , 574869 , 593835 , 597227 , 604608 , 466148 , 383597 , 417775 , 540791 , 488751 , 508133 , 508189 , 517073 , 549584 , 579417 , 541592 , 582789 , 680375 , 575716 , 584709 , 593935 , 605418 , 591428 , 601616 , 613936 , 604370 , 504780 , 487719 , 606016 , 477355 , 522973 , 526353 , 513126 , 543304 , 564563 , 565471 , 580256 , 658314 , 586899 , 598605 , 524508 , 568999 , 581112 , 571561 , 658269 , 575445 , 594819 , 622767 , 602569 , 591203 , 613985 , 566248 , 556741 , 559725 , 650155 , 559183 , 625404 , 591896 );
Copy
4
2.85 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
383597
417775
466148
477355
487719
488751
504780
508133
508189
513126
517073
522973
524508
526353
540791
541592
543304
549584
555821
556741
559183
559725
560272
564563
565471
566248
567134
568283
568999
571561
574869
575445
575716
579417
580256
581112
582789
584709
586899
591203
591428
591896
593835
593935
594819
597227
598605
601616
602569
604370
604608
605418
606016
613936
613985
622767
625404
649838
650020
650155
658269
658314
679350
680375
682909
]
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 (383597 , 417775 , 466148 , 477355 , 487719 , 488751 , 504780 , 508133 , 508189 , 513126 , 517073 , 522973 , 524508 , 526353 , 540791 , 541592 , 543304 , 549584 , 555821 , 556741 , 559183 , 559725 , 560272 , 564563 , 565471 , 566248 , 567134 , 568283 , 568999 , 571561 , 574869 , 575445 , 575716 , 579417 , 580256 , 581112 , 582789 , 584709 , 586899 , 591203 , 591428 , 591896 , 593835 , 593935 , 594819 , 597227 , 598605 , 601616 , 602569 , 604370 , 604608 , 605418 , 606016 , 613936 , 613985 , 622767 , 625404 , 649838 , 650020 , 650155 , 658269 , 658314 , 679350 , 680375 , 682909 );
Copy
5
109.04 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
383597
417775
466148
477355
487719
488751
504780
508133
508189
513126
517073
522973
524508
526353
540791
541592
543304
549584
555821
556741
559183
559725
560272
564563
565471
566248
567134
568283
568999
571561
574869
575445
575716
579417
580256
581112
582789
584709
586899
591203
591428
591896
593835
593935
594819
597227
598605
601616
602569
604370
604608
605418
606016
613936
613985
622767
625404
649838
650020
650155
658269
658314
679350
680375
682909
]
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 (383597 , 417775 , 466148 , 477355 , 487719 , 488751 , 504780 , 508133 , 508189 , 513126 , 517073 , 522973 , 524508 , 526353 , 540791 , 541592 , 543304 , 549584 , 555821 , 556741 , 559183 , 559725 , 560272 , 564563 , 565471 , 566248 , 567134 , 568283 , 568999 , 571561 , 574869 , 575445 , 575716 , 579417 , 580256 , 581112 , 582789 , 584709 , 586899 , 591203 , 591428 , 591896 , 593835 , 593935 , 594819 , 597227 , 598605 , 601616 , 602569 , 604370 , 604608 , 605418 , 606016 , 613936 , 613985 , 622767 , 625404 , 649838 , 650020 , 650155 , 658269 , 658314 , 679350 , 680375 , 682909 );
Copy