3
12.57 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
636598
635490
619204
784111
455611
609619
794230
620725
591327
636564
630915
732631
567539
631908
391941
679818
654294
544508
676887
606816
798443
723892
583966
583894
712049
553912
775960
775967
470631
545076
484392
648924
543613
545377
775848
474019
477483
540513
651609
603269
775866
770205
775963
478096
423940
567581
543924
775958
778359
484389
418534
591804
590560
540785
546993
612422
557985
640136
671863
730798
660424
597739
423329
601101
545718
520759
621612
588318
587864
]
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 (636598 , 635490 , 619204 , 784111 , 455611 , 609619 , 794230 , 620725 , 591327 , 636564 , 630915 , 732631 , 567539 , 631908 , 391941 , 679818 , 654294 , 544508 , 676887 , 606816 , 798443 , 723892 , 583966 , 583894 , 712049 , 553912 , 775960 , 775967 , 470631 , 545076 , 484392 , 648924 , 543613 , 545377 , 775848 , 474019 , 477483 , 540513 , 651609 , 603269 , 775866 , 770205 , 775963 , 478096 , 423940 , 567581 , 543924 , 775958 , 778359 , 484389 , 418534 , 591804 , 590560 , 540785 , 546993 , 612422 , 557985 , 640136 , 671863 , 730798 , 660424 , 597739 , 423329 , 601101 , 545718 , 520759 , 621612 , 588318 , 587864 );
Copy
4
3.05 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
391941
418534
423329
423940
455611
470631
474019
477483
478096
484389
484392
520759
540513
540785
543613
543924
544508
545076
545377
545718
546993
553912
557985
567539
567581
583894
583966
587864
588318
590560
591327
591804
597739
601101
603269
606816
609619
612422
619204
620725
621612
630915
631908
635490
636564
636598
640136
648924
651609
654294
660424
671863
676887
679818
712049
723892
730798
732631
770205
775848
775866
775958
775960
775963
775967
778359
784111
794230
798443
]
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 (391941 , 418534 , 423329 , 423940 , 455611 , 470631 , 474019 , 477483 , 478096 , 484389 , 484392 , 520759 , 540513 , 540785 , 543613 , 543924 , 544508 , 545076 , 545377 , 545718 , 546993 , 553912 , 557985 , 567539 , 567581 , 583894 , 583966 , 587864 , 588318 , 590560 , 591327 , 591804 , 597739 , 601101 , 603269 , 606816 , 609619 , 612422 , 619204 , 620725 , 621612 , 630915 , 631908 , 635490 , 636564 , 636598 , 640136 , 648924 , 651609 , 654294 , 660424 , 671863 , 676887 , 679818 , 712049 , 723892 , 730798 , 732631 , 770205 , 775848 , 775866 , 775958 , 775960 , 775963 , 775967 , 778359 , 784111 , 794230 , 798443 );
Copy
5
123.84 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
391941
418534
423329
423940
455611
470631
474019
477483
478096
484389
484392
520759
540513
540785
543613
543924
544508
545076
545377
545718
546993
553912
557985
567539
567581
583894
583966
587864
588318
590560
591327
591804
597739
601101
603269
606816
609619
612422
619204
620725
621612
630915
631908
635490
636564
636598
640136
648924
651609
654294
660424
671863
676887
679818
712049
723892
730798
732631
770205
775848
775866
775958
775960
775963
775967
778359
784111
794230
798443
]
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 (391941 , 418534 , 423329 , 423940 , 455611 , 470631 , 474019 , 477483 , 478096 , 484389 , 484392 , 520759 , 540513 , 540785 , 543613 , 543924 , 544508 , 545076 , 545377 , 545718 , 546993 , 553912 , 557985 , 567539 , 567581 , 583894 , 583966 , 587864 , 588318 , 590560 , 591327 , 591804 , 597739 , 601101 , 603269 , 606816 , 609619 , 612422 , 619204 , 620725 , 621612 , 630915 , 631908 , 635490 , 636564 , 636598 , 640136 , 648924 , 651609 , 654294 , 660424 , 671863 , 676887 , 679818 , 712049 , 723892 , 730798 , 732631 , 770205 , 775848 , 775866 , 775958 , 775960 , 775963 , 775967 , 778359 , 784111 , 794230 , 798443 );
Copy