3
12.44 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
715521
404175
666551
715497
794824
599941
453095
533382
525626
647994
613146
636299
632671
453092
728233
404192
775817
702677
632663
651135
758099
743782
533064
646901
662020
565418
589684
801958
645812
668555
599908
702679
477473
532779
543614
676110
647885
600332
636579
639802
599994
600334
778359
698133
494264
545851
646771
646786
642658
600355
632636
540410
649596
569922
599867
600296
642063
599913
599965
600019
601613
477097
820762
532751
534387
667748
632678
644986
532812
676428
636306
635275
637413
588318
]
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 (715521 , 404175 , 666551 , 715497 , 794824 , 599941 , 453095 , 533382 , 525626 , 647994 , 613146 , 636299 , 632671 , 453092 , 728233 , 404192 , 775817 , 702677 , 632663 , 651135 , 758099 , 743782 , 533064 , 646901 , 662020 , 565418 , 589684 , 801958 , 645812 , 668555 , 599908 , 702679 , 477473 , 532779 , 543614 , 676110 , 647885 , 600332 , 636579 , 639802 , 599994 , 600334 , 778359 , 698133 , 494264 , 545851 , 646771 , 646786 , 642658 , 600355 , 632636 , 540410 , 649596 , 569922 , 599867 , 600296 , 642063 , 599913 , 599965 , 600019 , 601613 , 477097 , 820762 , 532751 , 534387 , 667748 , 632678 , 644986 , 532812 , 676428 , 636306 , 635275 , 637413 , 588318 );
Copy
4
2.33 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
404175
404192
453092
453095
477097
477473
494264
525626
532751
532779
532812
533064
533382
534387
540410
543614
545851
565418
569922
588318
589684
599867
599908
599913
599941
599965
599994
600019
600296
600332
600334
600355
601613
613146
632636
632663
632671
632678
635275
636299
636306
636579
637413
639802
642063
642658
644986
645812
646771
646786
646901
647885
647994
649596
651135
662020
666551
667748
668555
676110
676428
698133
702677
702679
715497
715521
728233
743782
758099
775817
778359
794824
801958
820762
]
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 (404175 , 404192 , 453092 , 453095 , 477097 , 477473 , 494264 , 525626 , 532751 , 532779 , 532812 , 533064 , 533382 , 534387 , 540410 , 543614 , 545851 , 565418 , 569922 , 588318 , 589684 , 599867 , 599908 , 599913 , 599941 , 599965 , 599994 , 600019 , 600296 , 600332 , 600334 , 600355 , 601613 , 613146 , 632636 , 632663 , 632671 , 632678 , 635275 , 636299 , 636306 , 636579 , 637413 , 639802 , 642063 , 642658 , 644986 , 645812 , 646771 , 646786 , 646901 , 647885 , 647994 , 649596 , 651135 , 662020 , 666551 , 667748 , 668555 , 676110 , 676428 , 698133 , 702677 , 702679 , 715497 , 715521 , 728233 , 743782 , 758099 , 775817 , 778359 , 794824 , 801958 , 820762 );
Copy
5
165.24 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
404175
404192
453092
453095
477097
477473
494264
525626
532751
532779
532812
533064
533382
534387
540410
543614
545851
565418
569922
588318
589684
599867
599908
599913
599941
599965
599994
600019
600296
600332
600334
600355
601613
613146
632636
632663
632671
632678
635275
636299
636306
636579
637413
639802
642063
642658
644986
645812
646771
646786
646901
647885
647994
649596
651135
662020
666551
667748
668555
676110
676428
698133
702677
702679
715497
715521
728233
743782
758099
775817
778359
794824
801958
820762
]
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 (404175 , 404192 , 453092 , 453095 , 477097 , 477473 , 494264 , 525626 , 532751 , 532779 , 532812 , 533064 , 533382 , 534387 , 540410 , 543614 , 545851 , 565418 , 569922 , 588318 , 589684 , 599867 , 599908 , 599913 , 599941 , 599965 , 599994 , 600019 , 600296 , 600332 , 600334 , 600355 , 601613 , 613146 , 632636 , 632663 , 632671 , 632678 , 635275 , 636299 , 636306 , 636579 , 637413 , 639802 , 642063 , 642658 , 644986 , 645812 , 646771 , 646786 , 646901 , 647885 , 647994 , 649596 , 651135 , 662020 , 666551 , 667748 , 668555 , 676110 , 676428 , 698133 , 702677 , 702679 , 715497 , 715521 , 728233 , 743782 , 758099 , 775817 , 778359 , 794824 , 801958 , 820762 );
Copy