3
12.29 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
529457
486332
556481
557027
561879
579561
554369
558314
569408
575607
560229
584197
586511
596966
602612
628199
591666
590467
456745
519354
525794
456680
524018
587855
609933
415855
456519
467338
492690
498102
500506
561954
563062
568335
615724
634725
420762
511194
520753
562754
584262
477586
561135
578406
591239
622978
604710
467975
438067
516316
509986
666405
623817
609161
636479
476022
605971
459513
490050
591416
623813
499014
526948
530763
580289
521815
618326
]
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 (529457 , 486332 , 556481 , 557027 , 561879 , 579561 , 554369 , 558314 , 569408 , 575607 , 560229 , 584197 , 586511 , 596966 , 602612 , 628199 , 591666 , 590467 , 456745 , 519354 , 525794 , 456680 , 524018 , 587855 , 609933 , 415855 , 456519 , 467338 , 492690 , 498102 , 500506 , 561954 , 563062 , 568335 , 615724 , 634725 , 420762 , 511194 , 520753 , 562754 , 584262 , 477586 , 561135 , 578406 , 591239 , 622978 , 604710 , 467975 , 438067 , 516316 , 509986 , 666405 , 623817 , 609161 , 636479 , 476022 , 605971 , 459513 , 490050 , 591416 , 623813 , 499014 , 526948 , 530763 , 580289 , 521815 , 618326 );
Copy
4
2.49 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
415855
420762
438067
456519
456680
456745
459513
467338
467975
476022
477586
486332
490050
492690
498102
499014
500506
509986
511194
516316
519354
520753
521815
524018
525794
526948
529457
530763
554369
556481
557027
558314
560229
561135
561879
561954
562754
563062
568335
569408
575607
578406
579561
580289
584197
584262
586511
587855
590467
591239
591416
591666
596966
602612
604710
605971
609161
609933
615724
618326
622978
623813
623817
628199
634725
636479
666405
]
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 (415855 , 420762 , 438067 , 456519 , 456680 , 456745 , 459513 , 467338 , 467975 , 476022 , 477586 , 486332 , 490050 , 492690 , 498102 , 499014 , 500506 , 509986 , 511194 , 516316 , 519354 , 520753 , 521815 , 524018 , 525794 , 526948 , 529457 , 530763 , 554369 , 556481 , 557027 , 558314 , 560229 , 561135 , 561879 , 561954 , 562754 , 563062 , 568335 , 569408 , 575607 , 578406 , 579561 , 580289 , 584197 , 584262 , 586511 , 587855 , 590467 , 591239 , 591416 , 591666 , 596966 , 602612 , 604710 , 605971 , 609161 , 609933 , 615724 , 618326 , 622978 , 623813 , 623817 , 628199 , 634725 , 636479 , 666405 );
Copy
5
140.42 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
415855
420762
438067
456519
456680
456745
459513
467338
467975
476022
477586
486332
490050
492690
498102
499014
500506
509986
511194
516316
519354
520753
521815
524018
525794
526948
529457
530763
554369
556481
557027
558314
560229
561135
561879
561954
562754
563062
568335
569408
575607
578406
579561
580289
584197
584262
586511
587855
590467
591239
591416
591666
596966
602612
604710
605971
609161
609933
615724
618326
622978
623813
623817
628199
634725
636479
666405
]
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 (415855 , 420762 , 438067 , 456519 , 456680 , 456745 , 459513 , 467338 , 467975 , 476022 , 477586 , 486332 , 490050 , 492690 , 498102 , 499014 , 500506 , 509986 , 511194 , 516316 , 519354 , 520753 , 521815 , 524018 , 525794 , 526948 , 529457 , 530763 , 554369 , 556481 , 557027 , 558314 , 560229 , 561135 , 561879 , 561954 , 562754 , 563062 , 568335 , 569408 , 575607 , 578406 , 579561 , 580289 , 584197 , 584262 , 586511 , 587855 , 590467 , 591239 , 591416 , 591666 , 596966 , 602612 , 604710 , 605971 , 609161 , 609933 , 615724 , 618326 , 622978 , 623813 , 623817 , 628199 , 634725 , 636479 , 666405 );
Copy