3
10.82 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
736681
540789
552730
397283
796683
605410
601349
605598
572211
451149
828139
828252
540777
824335
540765
742920
819020
798483
742152
423436
813758
589191
388417
818085
696343
715669
743434
436539
636379
618549
784104
757210
769480
606978
627237
805241
756766
708311
710890
780370
789906
778992
486752
572181
792351
796826
465287
479750
514094
522644
575540
591748
768590
497201
510497
758099
697010
473320
511772
535416
697026
549814
500503
481419
591855
590460
]
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 (736681 , 540789 , 552730 , 397283 , 796683 , 605410 , 601349 , 605598 , 572211 , 451149 , 828139 , 828252 , 540777 , 824335 , 540765 , 742920 , 819020 , 798483 , 742152 , 423436 , 813758 , 589191 , 388417 , 818085 , 696343 , 715669 , 743434 , 436539 , 636379 , 618549 , 784104 , 757210 , 769480 , 606978 , 627237 , 805241 , 756766 , 708311 , 710890 , 780370 , 789906 , 778992 , 486752 , 572181 , 792351 , 796826 , 465287 , 479750 , 514094 , 522644 , 575540 , 591748 , 768590 , 497201 , 510497 , 758099 , 697010 , 473320 , 511772 , 535416 , 697026 , 549814 , 500503 , 481419 , 591855 , 590460 );
Copy
4
2.70 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
388417
397283
423436
436539
451149
465287
473320
479750
481419
486752
497201
500503
510497
511772
514094
522644
535416
540765
540777
540789
549814
552730
572181
572211
575540
589191
590460
591748
591855
601349
605410
605598
606978
618549
627237
636379
696343
697010
697026
708311
710890
715669
736681
742152
742920
743434
756766
757210
758099
768590
769480
778992
780370
784104
789906
792351
796683
796826
798483
805241
813758
818085
819020
824335
828139
828252
]
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 (388417 , 397283 , 423436 , 436539 , 451149 , 465287 , 473320 , 479750 , 481419 , 486752 , 497201 , 500503 , 510497 , 511772 , 514094 , 522644 , 535416 , 540765 , 540777 , 540789 , 549814 , 552730 , 572181 , 572211 , 575540 , 589191 , 590460 , 591748 , 591855 , 601349 , 605410 , 605598 , 606978 , 618549 , 627237 , 636379 , 696343 , 697010 , 697026 , 708311 , 710890 , 715669 , 736681 , 742152 , 742920 , 743434 , 756766 , 757210 , 758099 , 768590 , 769480 , 778992 , 780370 , 784104 , 789906 , 792351 , 796683 , 796826 , 798483 , 805241 , 813758 , 818085 , 819020 , 824335 , 828139 , 828252 );
Copy
5
87.93 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
388417
397283
423436
436539
451149
465287
473320
479750
481419
486752
497201
500503
510497
511772
514094
522644
535416
540765
540777
540789
549814
552730
572181
572211
575540
589191
590460
591748
591855
601349
605410
605598
606978
618549
627237
636379
696343
697010
697026
708311
710890
715669
736681
742152
742920
743434
756766
757210
758099
768590
769480
778992
780370
784104
789906
792351
796683
796826
798483
805241
813758
818085
819020
824335
828139
828252
]
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 (388417 , 397283 , 423436 , 436539 , 451149 , 465287 , 473320 , 479750 , 481419 , 486752 , 497201 , 500503 , 510497 , 511772 , 514094 , 522644 , 535416 , 540765 , 540777 , 540789 , 549814 , 552730 , 572181 , 572211 , 575540 , 589191 , 590460 , 591748 , 591855 , 601349 , 605410 , 605598 , 606978 , 618549 , 627237 , 636379 , 696343 , 697010 , 697026 , 708311 , 710890 , 715669 , 736681 , 742152 , 742920 , 743434 , 756766 , 757210 , 758099 , 768590 , 769480 , 778992 , 780370 , 784104 , 789906 , 792351 , 796683 , 796826 , 798483 , 805241 , 813758 , 818085 , 819020 , 824335 , 828139 , 828252 );
Copy