3
12.24 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
749641
456588
824971
674744
817380
826081
531946
797727
822538
823322
767545
826859
811334
631827
762660
737101
611115
748620
823844
517021
755371
745914
730504
707250
718756
816295
704596
678247
693575
782420
803371
468485
429406
431522
450119
446952
473048
473804
712905
605649
458996
446461
452722
724979
399945
455873
521755
449461
449473
522103
675449
520702
449512
475724
647940
548754
586864
598207
643415
491478
449508
521797
502512
]
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 (749641 , 456588 , 824971 , 674744 , 817380 , 826081 , 531946 , 797727 , 822538 , 823322 , 767545 , 826859 , 811334 , 631827 , 762660 , 737101 , 611115 , 748620 , 823844 , 517021 , 755371 , 745914 , 730504 , 707250 , 718756 , 816295 , 704596 , 678247 , 693575 , 782420 , 803371 , 468485 , 429406 , 431522 , 450119 , 446952 , 473048 , 473804 , 712905 , 605649 , 458996 , 446461 , 452722 , 724979 , 399945 , 455873 , 521755 , 449461 , 449473 , 522103 , 675449 , 520702 , 449512 , 475724 , 647940 , 548754 , 586864 , 598207 , 643415 , 491478 , 449508 , 521797 , 502512 );
Copy
4
2.19 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
399945
429406
431522
446461
446952
449461
449473
449508
449512
450119
452722
455873
456588
458996
468485
473048
473804
475724
491478
502512
517021
520702
521755
521797
522103
531946
548754
586864
598207
605649
611115
631827
643415
647940
674744
675449
678247
693575
704596
707250
712905
718756
724979
730504
737101
745914
748620
749641
755371
762660
767545
782420
797727
803371
811334
816295
817380
822538
823322
823844
826859
]
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 (399945 , 429406 , 431522 , 446461 , 446952 , 449461 , 449473 , 449508 , 449512 , 450119 , 452722 , 455873 , 456588 , 458996 , 468485 , 473048 , 473804 , 475724 , 491478 , 502512 , 517021 , 520702 , 521755 , 521797 , 522103 , 531946 , 548754 , 586864 , 598207 , 605649 , 611115 , 631827 , 643415 , 647940 , 674744 , 675449 , 678247 , 693575 , 704596 , 707250 , 712905 , 718756 , 724979 , 730504 , 737101 , 745914 , 748620 , 749641 , 755371 , 762660 , 767545 , 782420 , 797727 , 803371 , 811334 , 816295 , 817380 , 822538 , 823322 , 823844 , 826859 );
Copy
5
67.02 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
399945
429406
431522
446461
446952
449461
449473
449508
449512
450119
452722
455873
456588
458996
468485
473048
473804
475724
491478
502512
517021
520702
521755
521797
522103
531946
548754
586864
598207
605649
611115
631827
643415
647940
674744
675449
678247
693575
704596
707250
712905
718756
724979
730504
737101
745914
748620
749641
755371
762660
767545
782420
797727
803371
811334
816295
817380
822538
823322
823844
826859
]
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 (399945 , 429406 , 431522 , 446461 , 446952 , 449461 , 449473 , 449508 , 449512 , 450119 , 452722 , 455873 , 456588 , 458996 , 468485 , 473048 , 473804 , 475724 , 491478 , 502512 , 517021 , 520702 , 521755 , 521797 , 522103 , 531946 , 548754 , 586864 , 598207 , 605649 , 611115 , 631827 , 643415 , 647940 , 674744 , 675449 , 678247 , 693575 , 704596 , 707250 , 712905 , 718756 , 724979 , 730504 , 737101 , 745914 , 748620 , 749641 , 755371 , 762660 , 767545 , 782420 , 797727 , 803371 , 811334 , 816295 , 817380 , 822538 , 823322 , 823844 , 826859 );
Copy