3
20.36 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
547557
567504
560877
565255
577384
555149
572869
605152
605639
606596
592495
621222
586491
767601
607355
415807
471339
514042
514684
522980
493803
508699
513517
524371
527038
483321
453340
491392
470829
521504
492799
560486
569091
580277
556009
576629
623089
610661
605462
615826
619510
622666
514413
486875
519558
516432
657775
556865
576623
602312
603286
608584
415798
504759
594819
597739
627638
621489
585668
605500
517665
555181
561304
586576
600535
621735
605409
]
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 (547557 , 567504 , 560877 , 565255 , 577384 , 555149 , 572869 , 605152 , 605639 , 606596 , 592495 , 621222 , 586491 , 767601 , 607355 , 415807 , 471339 , 514042 , 514684 , 522980 , 493803 , 508699 , 513517 , 524371 , 527038 , 483321 , 453340 , 491392 , 470829 , 521504 , 492799 , 560486 , 569091 , 580277 , 556009 , 576629 , 623089 , 610661 , 605462 , 615826 , 619510 , 622666 , 514413 , 486875 , 519558 , 516432 , 657775 , 556865 , 576623 , 602312 , 603286 , 608584 , 415798 , 504759 , 594819 , 597739 , 627638 , 621489 , 585668 , 605500 , 517665 , 555181 , 561304 , 586576 , 600535 , 621735 , 605409 );
Copy
4
2.05 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
415798
415807
453340
470829
483321
486875
491392
492799
493803
504759
508699
513517
514042
514413
514684
516432
517665
519558
521504
522980
524371
527038
547557
555149
555181
556009
556865
560486
560877
561304
565255
567504
569091
572869
576623
576629
577384
580277
585668
586491
586576
592495
594819
597739
600535
602312
603286
605152
605409
605462
605500
605639
606596
607355
608584
610661
615826
619510
621222
621489
621735
622666
623089
627638
657775
767601
]
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 (415798 , 415807 , 453340 , 470829 , 483321 , 486875 , 491392 , 492799 , 493803 , 504759 , 508699 , 513517 , 514042 , 514413 , 514684 , 516432 , 517665 , 519558 , 521504 , 522980 , 524371 , 527038 , 547557 , 555149 , 555181 , 556009 , 556865 , 560486 , 560877 , 561304 , 565255 , 567504 , 569091 , 572869 , 576623 , 576629 , 577384 , 580277 , 585668 , 586491 , 586576 , 592495 , 594819 , 597739 , 600535 , 602312 , 603286 , 605152 , 605409 , 605462 , 605500 , 605639 , 606596 , 607355 , 608584 , 610661 , 615826 , 619510 , 621222 , 621489 , 621735 , 622666 , 623089 , 627638 , 657775 , 767601 );
Copy
5
101.65 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
415798
415807
453340
470829
483321
486875
491392
492799
493803
504759
508699
513517
514042
514413
514684
516432
517665
519558
521504
522980
524371
527038
547557
555149
555181
556009
556865
560486
560877
561304
565255
567504
569091
572869
576623
576629
577384
580277
585668
586491
586576
592495
594819
597739
600535
602312
603286
605152
605409
605462
605500
605639
606596
607355
608584
610661
615826
619510
621222
621489
621735
622666
623089
627638
657775
767601
]
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 (415798 , 415807 , 453340 , 470829 , 483321 , 486875 , 491392 , 492799 , 493803 , 504759 , 508699 , 513517 , 514042 , 514413 , 514684 , 516432 , 517665 , 519558 , 521504 , 522980 , 524371 , 527038 , 547557 , 555149 , 555181 , 556009 , 556865 , 560486 , 560877 , 561304 , 565255 , 567504 , 569091 , 572869 , 576623 , 576629 , 577384 , 580277 , 585668 , 586491 , 586576 , 592495 , 594819 , 597739 , 600535 , 602312 , 603286 , 605152 , 605409 , 605462 , 605500 , 605639 , 606596 , 607355 , 608584 , 610661 , 615826 , 619510 , 621222 , 621489 , 621735 , 622666 , 623089 , 627638 , 657775 , 767601 );
Copy