3
9.33 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
407357
799726
742602
757995
406433
721408
727728
427219
661881
663000
706432
722901
733309
806632
817809
404478
519594
511599
661769
799727
745682
779817
786549
435358
561356
758719
779738
772410
743933
781752
782729
656067
492940
646246
676421
721427
721487
613849
616002
738805
408024
461372
468720
667787
675705
477337
618943
577320
722851
470523
643411
823165
559936
654683
722871
506436
596820
430313
713687
808538
743340
261074
574572
769890
579534
417830
660648
558543
]
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 (407357 , 799726 , 742602 , 757995 , 406433 , 721408 , 727728 , 427219 , 661881 , 663000 , 706432 , 722901 , 733309 , 806632 , 817809 , 404478 , 519594 , 511599 , 661769 , 799727 , 745682 , 779817 , 786549 , 435358 , 561356 , 758719 , 779738 , 772410 , 743933 , 781752 , 782729 , 656067 , 492940 , 646246 , 676421 , 721427 , 721487 , 613849 , 616002 , 738805 , 408024 , 461372 , 468720 , 667787 , 675705 , 477337 , 618943 , 577320 , 722851 , 470523 , 643411 , 823165 , 559936 , 654683 , 722871 , 506436 , 596820 , 430313 , 713687 , 808538 , 743340 , 261074 , 574572 , 769890 , 579534 , 417830 , 660648 , 558543 );
Copy
4
2.25 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
261074
404478
406433
407357
408024
417830
427219
430313
435358
461372
468720
470523
477337
492940
506436
511599
519594
558543
559936
561356
574572
577320
579534
596820
613849
616002
618943
643411
646246
654683
656067
660648
661769
661881
663000
667787
675705
676421
706432
713687
721408
721427
721487
722851
722871
722901
727728
733309
738805
742602
743340
743933
745682
757995
758719
769890
772410
779738
779817
781752
782729
786549
799726
799727
806632
808538
817809
823165
]
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 (261074 , 404478 , 406433 , 407357 , 408024 , 417830 , 427219 , 430313 , 435358 , 461372 , 468720 , 470523 , 477337 , 492940 , 506436 , 511599 , 519594 , 558543 , 559936 , 561356 , 574572 , 577320 , 579534 , 596820 , 613849 , 616002 , 618943 , 643411 , 646246 , 654683 , 656067 , 660648 , 661769 , 661881 , 663000 , 667787 , 675705 , 676421 , 706432 , 713687 , 721408 , 721427 , 721487 , 722851 , 722871 , 722901 , 727728 , 733309 , 738805 , 742602 , 743340 , 743933 , 745682 , 757995 , 758719 , 769890 , 772410 , 779738 , 779817 , 781752 , 782729 , 786549 , 799726 , 799727 , 806632 , 808538 , 817809 , 823165 );
Copy
5
110.16 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
261074
404478
406433
407357
408024
417830
427219
430313
435358
461372
468720
470523
477337
492940
506436
511599
519594
558543
559936
561356
574572
577320
579534
596820
613849
616002
618943
643411
646246
654683
656067
660648
661769
661881
663000
667787
675705
676421
706432
713687
721408
721427
721487
722851
722871
722901
727728
733309
738805
742602
743340
743933
745682
757995
758719
769890
772410
779738
779817
781752
782729
786549
799726
799727
806632
808538
817809
823165
]
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 (261074 , 404478 , 406433 , 407357 , 408024 , 417830 , 427219 , 430313 , 435358 , 461372 , 468720 , 470523 , 477337 , 492940 , 506436 , 511599 , 519594 , 558543 , 559936 , 561356 , 574572 , 577320 , 579534 , 596820 , 613849 , 616002 , 618943 , 643411 , 646246 , 654683 , 656067 , 660648 , 661769 , 661881 , 663000 , 667787 , 675705 , 676421 , 706432 , 713687 , 721408 , 721427 , 721487 , 722851 , 722871 , 722901 , 727728 , 733309 , 738805 , 742602 , 743340 , 743933 , 745682 , 757995 , 758719 , 769890 , 772410 , 779738 , 779817 , 781752 , 782729 , 786549 , 799726 , 799727 , 806632 , 808538 , 817809 , 823165 );
Copy