3
8.78 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
749979
780976
825930
715020
634961
740593
224641
825086
666665
773295
824967
514918
750627
777883
668776
783232
728187
775292
548055
598862
616005
496637
390207
500525
616760
793147
782661
752396
507252
514875
714791
605891
801692
756253
742791
778888
537797
782150
737086
710979
623972
785338
616895
775538
789024
766294
403338
527100
393142
759758
484295
454036
522428
557442
678896
474813
529240
451226
594863
508429
587751
623472
482070
578445
502480
]
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 (749979 , 780976 , 825930 , 715020 , 634961 , 740593 , 224641 , 825086 , 666665 , 773295 , 824967 , 514918 , 750627 , 777883 , 668776 , 783232 , 728187 , 775292 , 548055 , 598862 , 616005 , 496637 , 390207 , 500525 , 616760 , 793147 , 782661 , 752396 , 507252 , 514875 , 714791 , 605891 , 801692 , 756253 , 742791 , 778888 , 537797 , 782150 , 737086 , 710979 , 623972 , 785338 , 616895 , 775538 , 789024 , 766294 , 403338 , 527100 , 393142 , 759758 , 484295 , 454036 , 522428 , 557442 , 678896 , 474813 , 529240 , 451226 , 594863 , 508429 , 587751 , 623472 , 482070 , 578445 , 502480 );
Copy
4
2.57 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
224641
390207
393142
403338
451226
454036
474813
482070
484295
496637
500525
502480
507252
508429
514875
514918
522428
527100
529240
537797
548055
557442
578445
587751
594863
598862
605891
616005
616760
616895
623472
623972
634961
666665
668776
678896
710979
714791
715020
728187
737086
740593
742791
749979
750627
752396
756253
759758
766294
775292
775538
777883
778888
780976
782150
782661
783232
785338
789024
793147
801692
824967
825086
825930
]
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 (224641 , 390207 , 393142 , 403338 , 451226 , 454036 , 474813 , 482070 , 484295 , 496637 , 500525 , 502480 , 507252 , 508429 , 514875 , 514918 , 522428 , 527100 , 529240 , 537797 , 548055 , 557442 , 578445 , 587751 , 594863 , 598862 , 605891 , 616005 , 616760 , 616895 , 623472 , 623972 , 634961 , 666665 , 668776 , 678896 , 710979 , 714791 , 715020 , 728187 , 737086 , 740593 , 742791 , 749979 , 750627 , 752396 , 756253 , 759758 , 766294 , 775292 , 775538 , 777883 , 778888 , 780976 , 782150 , 782661 , 783232 , 785338 , 789024 , 793147 , 801692 , 824967 , 825086 , 825930 );
Copy
5
69.58 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
224641
390207
393142
403338
451226
454036
474813
482070
484295
496637
500525
502480
507252
508429
514875
514918
522428
527100
529240
537797
548055
557442
578445
587751
594863
598862
605891
616005
616760
616895
623472
623972
634961
666665
668776
678896
710979
714791
715020
728187
737086
740593
742791
749979
750627
752396
756253
759758
766294
775292
775538
777883
778888
780976
782150
782661
783232
785338
789024
793147
801692
824967
825086
825930
]
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 (224641 , 390207 , 393142 , 403338 , 451226 , 454036 , 474813 , 482070 , 484295 , 496637 , 500525 , 502480 , 507252 , 508429 , 514875 , 514918 , 522428 , 527100 , 529240 , 537797 , 548055 , 557442 , 578445 , 587751 , 594863 , 598862 , 605891 , 616005 , 616760 , 616895 , 623472 , 623972 , 634961 , 666665 , 668776 , 678896 , 710979 , 714791 , 715020 , 728187 , 737086 , 740593 , 742791 , 749979 , 750627 , 752396 , 756253 , 759758 , 766294 , 775292 , 775538 , 777883 , 778888 , 780976 , 782150 , 782661 , 783232 , 785338 , 789024 , 793147 , 801692 , 824967 , 825086 , 825930 );
Copy