3
8.73 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
806703
746646
809800
825428
806698
746089
746603
806707
731093
693257
725229
746165
732833
509884
495496
824260
701473
566009
689893
702502
795964
725539
746188
795448
491751
520879
725494
735847
735870
714423
715158
507131
705443
800760
825358
714554
731036
742759
735914
742754
725468
746179
660070
725477
746141
731165
735840
758158
763182
526393
806715
530552
666489
725231
725442
800047
731104
758442
751473
774124
727038
602674
760705
725514
725458
495015
556990
461394
500963
500911
504758
504776
621348
544495
]
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 (806703 , 746646 , 809800 , 825428 , 806698 , 746089 , 746603 , 806707 , 731093 , 693257 , 725229 , 746165 , 732833 , 509884 , 495496 , 824260 , 701473 , 566009 , 689893 , 702502 , 795964 , 725539 , 746188 , 795448 , 491751 , 520879 , 725494 , 735847 , 735870 , 714423 , 715158 , 507131 , 705443 , 800760 , 825358 , 714554 , 731036 , 742759 , 735914 , 742754 , 725468 , 746179 , 660070 , 725477 , 746141 , 731165 , 735840 , 758158 , 763182 , 526393 , 806715 , 530552 , 666489 , 725231 , 725442 , 800047 , 731104 , 758442 , 751473 , 774124 , 727038 , 602674 , 760705 , 725514 , 725458 , 495015 , 556990 , 461394 , 500963 , 500911 , 504758 , 504776 , 621348 , 544495 );
Copy
4
3.13 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
461394
491751
495015
495496
500911
500963
504758
504776
507131
509884
520879
526393
530552
544495
556990
566009
602674
621348
660070
666489
689893
693257
701473
702502
705443
714423
714554
715158
725229
725231
725442
725458
725468
725477
725494
725514
725539
727038
731036
731093
731104
731165
732833
735840
735847
735870
735914
742754
742759
746089
746141
746165
746179
746188
746603
746646
751473
758158
758442
760705
763182
774124
795448
795964
800047
800760
806698
806703
806707
806715
809800
824260
825358
825428
]
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 (461394 , 491751 , 495015 , 495496 , 500911 , 500963 , 504758 , 504776 , 507131 , 509884 , 520879 , 526393 , 530552 , 544495 , 556990 , 566009 , 602674 , 621348 , 660070 , 666489 , 689893 , 693257 , 701473 , 702502 , 705443 , 714423 , 714554 , 715158 , 725229 , 725231 , 725442 , 725458 , 725468 , 725477 , 725494 , 725514 , 725539 , 727038 , 731036 , 731093 , 731104 , 731165 , 732833 , 735840 , 735847 , 735870 , 735914 , 742754 , 742759 , 746089 , 746141 , 746165 , 746179 , 746188 , 746603 , 746646 , 751473 , 758158 , 758442 , 760705 , 763182 , 774124 , 795448 , 795964 , 800047 , 800760 , 806698 , 806703 , 806707 , 806715 , 809800 , 824260 , 825358 , 825428 );
Copy
5
80.09 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
461394
491751
495015
495496
500911
500963
504758
504776
507131
509884
520879
526393
530552
544495
556990
566009
602674
621348
660070
666489
689893
693257
701473
702502
705443
714423
714554
715158
725229
725231
725442
725458
725468
725477
725494
725514
725539
727038
731036
731093
731104
731165
732833
735840
735847
735870
735914
742754
742759
746089
746141
746165
746179
746188
746603
746646
751473
758158
758442
760705
763182
774124
795448
795964
800047
800760
806698
806703
806707
806715
809800
824260
825358
825428
]
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 (461394 , 491751 , 495015 , 495496 , 500911 , 500963 , 504758 , 504776 , 507131 , 509884 , 520879 , 526393 , 530552 , 544495 , 556990 , 566009 , 602674 , 621348 , 660070 , 666489 , 689893 , 693257 , 701473 , 702502 , 705443 , 714423 , 714554 , 715158 , 725229 , 725231 , 725442 , 725458 , 725468 , 725477 , 725494 , 725514 , 725539 , 727038 , 731036 , 731093 , 731104 , 731165 , 732833 , 735840 , 735847 , 735870 , 735914 , 742754 , 742759 , 746089 , 746141 , 746165 , 746179 , 746188 , 746603 , 746646 , 751473 , 758158 , 758442 , 760705 , 763182 , 774124 , 795448 , 795964 , 800047 , 800760 , 806698 , 806703 , 806707 , 806715 , 809800 , 824260 , 825358 , 825428 );
Copy