4
12.70 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
802328
797060
543648
711860
781485
604364
397396
492275
478833
801316
720828
511348
384119
760338
673093
778593
505803
791097
504592
462071
449234
699892
618190
443333
801259
424646
426220
430374
528385
685728
801737
512062
826874
430355
546573
618021
777742
787506
408460
450579
534848
671396
787556
457531
538266
625186
546465
447116
478712
496149
429255
427166
555291
541732
580418
417800
447317
473974
598524
524506
560845
582631
597501
598510
601314
595891
655615
553108
406075
524281
651938
511837
516904
]
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 (802328 , 797060 , 543648 , 711860 , 781485 , 604364 , 397396 , 492275 , 478833 , 801316 , 720828 , 511348 , 384119 , 760338 , 673093 , 778593 , 505803 , 791097 , 504592 , 462071 , 449234 , 699892 , 618190 , 443333 , 801259 , 424646 , 426220 , 430374 , 528385 , 685728 , 801737 , 512062 , 826874 , 430355 , 546573 , 618021 , 777742 , 787506 , 408460 , 450579 , 534848 , 671396 , 787556 , 457531 , 538266 , 625186 , 546465 , 447116 , 478712 , 496149 , 429255 , 427166 , 555291 , 541732 , 580418 , 417800 , 447317 , 473974 , 598524 , 524506 , 560845 , 582631 , 597501 , 598510 , 601314 , 595891 , 655615 , 553108 , 406075 , 524281 , 651938 , 511837 , 516904 );
Copy
5
3.59 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
384119
397396
406075
408460
417800
424646
426220
427166
429255
430355
430374
443333
447116
447317
449234
450579
457531
462071
473974
478712
478833
492275
496149
504592
505803
511348
511837
512062
516904
524281
524506
528385
534848
538266
541732
543648
546465
546573
553108
555291
560845
580418
582631
595891
597501
598510
598524
601314
604364
618021
618190
625186
651938
655615
671396
673093
685728
699892
711860
720828
760338
777742
778593
781485
787506
787556
791097
797060
801259
801316
801737
802328
826874
]
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 (384119 , 397396 , 406075 , 408460 , 417800 , 424646 , 426220 , 427166 , 429255 , 430355 , 430374 , 443333 , 447116 , 447317 , 449234 , 450579 , 457531 , 462071 , 473974 , 478712 , 478833 , 492275 , 496149 , 504592 , 505803 , 511348 , 511837 , 512062 , 516904 , 524281 , 524506 , 528385 , 534848 , 538266 , 541732 , 543648 , 546465 , 546573 , 553108 , 555291 , 560845 , 580418 , 582631 , 595891 , 597501 , 598510 , 598524 , 601314 , 604364 , 618021 , 618190 , 625186 , 651938 , 655615 , 671396 , 673093 , 685728 , 699892 , 711860 , 720828 , 760338 , 777742 , 778593 , 781485 , 787506 , 787556 , 791097 , 797060 , 801259 , 801316 , 801737 , 802328 , 826874 );
Copy
6
141.74 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
384119
397396
406075
408460
417800
424646
426220
427166
429255
430355
430374
443333
447116
447317
449234
450579
457531
462071
473974
478712
478833
492275
496149
504592
505803
511348
511837
512062
516904
524281
524506
528385
534848
538266
541732
543648
546465
546573
553108
555291
560845
580418
582631
595891
597501
598510
598524
601314
604364
618021
618190
625186
651938
655615
671396
673093
685728
699892
711860
720828
760338
777742
778593
781485
787506
787556
791097
797060
801259
801316
801737
802328
826874
]
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 (384119 , 397396 , 406075 , 408460 , 417800 , 424646 , 426220 , 427166 , 429255 , 430355 , 430374 , 443333 , 447116 , 447317 , 449234 , 450579 , 457531 , 462071 , 473974 , 478712 , 478833 , 492275 , 496149 , 504592 , 505803 , 511348 , 511837 , 512062 , 516904 , 524281 , 524506 , 528385 , 534848 , 538266 , 541732 , 543648 , 546465 , 546573 , 553108 , 555291 , 560845 , 580418 , 582631 , 595891 , 597501 , 598510 , 598524 , 601314 , 604364 , 618021 , 618190 , 625186 , 651938 , 655615 , 671396 , 673093 , 685728 , 699892 , 711860 , 720828 , 760338 , 777742 , 778593 , 781485 , 787506 , 787556 , 791097 , 797060 , 801259 , 801316 , 801737 , 802328 , 826874 );
Copy