4
16.53 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
661387
697295
97765
98190
646041
97738
97570
97598
4497
821804
550147
550170
651662
549440
597209
630884
644619
97480
98016
97830
97851
98410
547689
648894
97747
98040
97462
524476
550152
550174
97769
97689
97450
550172
642317
83943
457665
550159
648470
668485
97544
97823
511329
97445
457598
524472
524475
550150
550168
511316
524480
524494
550163
587232
457589
511286
564215
457615
524488
524482
524485
524493
601169
457612
524484
524478
511309
524491
581999
550138
592685
604839
]
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 (661387 , 697295 , 97765 , 98190 , 646041 , 97738 , 97570 , 97598 , 4497 , 821804 , 550147 , 550170 , 651662 , 549440 , 597209 , 630884 , 644619 , 97480 , 98016 , 97830 , 97851 , 98410 , 547689 , 648894 , 97747 , 98040 , 97462 , 524476 , 550152 , 550174 , 97769 , 97689 , 97450 , 550172 , 642317 , 83943 , 457665 , 550159 , 648470 , 668485 , 97544 , 97823 , 511329 , 97445 , 457598 , 524472 , 524475 , 550150 , 550168 , 511316 , 524480 , 524494 , 550163 , 587232 , 457589 , 511286 , 564215 , 457615 , 524488 , 524482 , 524485 , 524493 , 601169 , 457612 , 524484 , 524478 , 511309 , 524491 , 581999 , 550138 , 592685 , 604839 );
Copy
5
2.68 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
4497
83943
97445
97450
97462
97480
97544
97570
97598
97689
97738
97747
97765
97769
97823
97830
97851
98016
98040
98190
98410
457589
457598
457612
457615
457665
511286
511309
511316
511329
524472
524475
524476
524478
524480
524482
524484
524485
524488
524491
524493
524494
547689
549440
550138
550147
550150
550152
550159
550163
550168
550170
550172
550174
564215
581999
587232
592685
597209
601169
604839
630884
642317
644619
646041
648470
648894
651662
661387
668485
697295
821804
]
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 (4497 , 83943 , 97445 , 97450 , 97462 , 97480 , 97544 , 97570 , 97598 , 97689 , 97738 , 97747 , 97765 , 97769 , 97823 , 97830 , 97851 , 98016 , 98040 , 98190 , 98410 , 457589 , 457598 , 457612 , 457615 , 457665 , 511286 , 511309 , 511316 , 511329 , 524472 , 524475 , 524476 , 524478 , 524480 , 524482 , 524484 , 524485 , 524488 , 524491 , 524493 , 524494 , 547689 , 549440 , 550138 , 550147 , 550150 , 550152 , 550159 , 550163 , 550168 , 550170 , 550172 , 550174 , 564215 , 581999 , 587232 , 592685 , 597209 , 601169 , 604839 , 630884 , 642317 , 644619 , 646041 , 648470 , 648894 , 651662 , 661387 , 668485 , 697295 , 821804 );
Copy
6
80.32 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
4497
83943
97445
97450
97462
97480
97544
97570
97598
97689
97738
97747
97765
97769
97823
97830
97851
98016
98040
98190
98410
457589
457598
457612
457615
457665
511286
511309
511316
511329
524472
524475
524476
524478
524480
524482
524484
524485
524488
524491
524493
524494
547689
549440
550138
550147
550150
550152
550159
550163
550168
550170
550172
550174
564215
581999
587232
592685
597209
601169
604839
630884
642317
644619
646041
648470
648894
651662
661387
668485
697295
821804
]
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 (4497 , 83943 , 97445 , 97450 , 97462 , 97480 , 97544 , 97570 , 97598 , 97689 , 97738 , 97747 , 97765 , 97769 , 97823 , 97830 , 97851 , 98016 , 98040 , 98190 , 98410 , 457589 , 457598 , 457612 , 457615 , 457665 , 511286 , 511309 , 511316 , 511329 , 524472 , 524475 , 524476 , 524478 , 524480 , 524482 , 524484 , 524485 , 524488 , 524491 , 524493 , 524494 , 547689 , 549440 , 550138 , 550147 , 550150 , 550152 , 550159 , 550163 , 550168 , 550170 , 550172 , 550174 , 564215 , 581999 , 587232 , 592685 , 597209 , 601169 , 604839 , 630884 , 642317 , 644619 , 646041 , 648470 , 648894 , 651662 , 661387 , 668485 , 697295 , 821804 );
Copy