3
9.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
735135
647249
503722
513570
547608
693082
693085
728597
729694
796767
583539
715362
446479
526180
548451
693767
737827
811123
791600
818009
448233
514921
615686
439079
556888
461246
461418
659423
581314
641593
785188
673415
708208
626324
777779
758799
792789
795226
772777
419277
564429
616094
427647
526152
580588
562462
601185
776130
800293
730359
453025
591334
449349
468058
495279
507495
556876
600498
420295
815492
477464
561935
463694
524557
720072
791738
812874
500268
520540
503127
602614
584492
415419
]
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 (735135 , 647249 , 503722 , 513570 , 547608 , 693082 , 693085 , 728597 , 729694 , 796767 , 583539 , 715362 , 446479 , 526180 , 548451 , 693767 , 737827 , 811123 , 791600 , 818009 , 448233 , 514921 , 615686 , 439079 , 556888 , 461246 , 461418 , 659423 , 581314 , 641593 , 785188 , 673415 , 708208 , 626324 , 777779 , 758799 , 792789 , 795226 , 772777 , 419277 , 564429 , 616094 , 427647 , 526152 , 580588 , 562462 , 601185 , 776130 , 800293 , 730359 , 453025 , 591334 , 449349 , 468058 , 495279 , 507495 , 556876 , 600498 , 420295 , 815492 , 477464 , 561935 , 463694 , 524557 , 720072 , 791738 , 812874 , 500268 , 520540 , 503127 , 602614 , 584492 , 415419 );
Copy
4
2.09 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
415419
419277
420295
427647
439079
446479
448233
449349
453025
461246
461418
463694
468058
477464
495279
500268
503127
503722
507495
513570
514921
520540
524557
526152
526180
547608
548451
556876
556888
561935
562462
564429
580588
581314
583539
584492
591334
600498
601185
602614
615686
616094
626324
641593
647249
659423
673415
693082
693085
693767
708208
715362
720072
728597
729694
730359
735135
737827
758799
772777
776130
777779
785188
791600
791738
792789
795226
796767
800293
811123
812874
815492
818009
]
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 (415419 , 419277 , 420295 , 427647 , 439079 , 446479 , 448233 , 449349 , 453025 , 461246 , 461418 , 463694 , 468058 , 477464 , 495279 , 500268 , 503127 , 503722 , 507495 , 513570 , 514921 , 520540 , 524557 , 526152 , 526180 , 547608 , 548451 , 556876 , 556888 , 561935 , 562462 , 564429 , 580588 , 581314 , 583539 , 584492 , 591334 , 600498 , 601185 , 602614 , 615686 , 616094 , 626324 , 641593 , 647249 , 659423 , 673415 , 693082 , 693085 , 693767 , 708208 , 715362 , 720072 , 728597 , 729694 , 730359 , 735135 , 737827 , 758799 , 772777 , 776130 , 777779 , 785188 , 791600 , 791738 , 792789 , 795226 , 796767 , 800293 , 811123 , 812874 , 815492 , 818009 );
Copy
5
94.35 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
415419
419277
420295
427647
439079
446479
448233
449349
453025
461246
461418
463694
468058
477464
495279
500268
503127
503722
507495
513570
514921
520540
524557
526152
526180
547608
548451
556876
556888
561935
562462
564429
580588
581314
583539
584492
591334
600498
601185
602614
615686
616094
626324
641593
647249
659423
673415
693082
693085
693767
708208
715362
720072
728597
729694
730359
735135
737827
758799
772777
776130
777779
785188
791600
791738
792789
795226
796767
800293
811123
812874
815492
818009
]
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 (415419 , 419277 , 420295 , 427647 , 439079 , 446479 , 448233 , 449349 , 453025 , 461246 , 461418 , 463694 , 468058 , 477464 , 495279 , 500268 , 503127 , 503722 , 507495 , 513570 , 514921 , 520540 , 524557 , 526152 , 526180 , 547608 , 548451 , 556876 , 556888 , 561935 , 562462 , 564429 , 580588 , 581314 , 583539 , 584492 , 591334 , 600498 , 601185 , 602614 , 615686 , 616094 , 626324 , 641593 , 647249 , 659423 , 673415 , 693082 , 693085 , 693767 , 708208 , 715362 , 720072 , 728597 , 729694 , 730359 , 735135 , 737827 , 758799 , 772777 , 776130 , 777779 , 785188 , 791600 , 791738 , 792789 , 795226 , 796767 , 800293 , 811123 , 812874 , 815492 , 818009 );
Copy