3
16.39 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
592188
633819
637021
642066
599875
634790
632690
497757
514711
526814
489729
524786
409667
537204
532834
533837
505611
460771
541863
677303
696582
645276
600296
639810
633451
630771
445737
495038
485147
524198
486868
536676
532747
537184
530495
537648
666895
645284
646427
622398
642032
587955
639760
600218
539203
540559
576286
580766
676428
695127
584461
630546
634140
628383
636300
639719
628371
642037
626978
517326
496853
529792
556524
675012
]
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 (592188 , 633819 , 637021 , 642066 , 599875 , 634790 , 632690 , 497757 , 514711 , 526814 , 489729 , 524786 , 409667 , 537204 , 532834 , 533837 , 505611 , 460771 , 541863 , 677303 , 696582 , 645276 , 600296 , 639810 , 633451 , 630771 , 445737 , 495038 , 485147 , 524198 , 486868 , 536676 , 532747 , 537184 , 530495 , 537648 , 666895 , 645284 , 646427 , 622398 , 642032 , 587955 , 639760 , 600218 , 539203 , 540559 , 576286 , 580766 , 676428 , 695127 , 584461 , 630546 , 634140 , 628383 , 636300 , 639719 , 628371 , 642037 , 626978 , 517326 , 496853 , 529792 , 556524 , 675012 );
Copy
4
3.54 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
409667
445737
460771
485147
486868
489729
495038
496853
497757
505611
514711
517326
524198
524786
526814
529792
530495
532747
532834
533837
536676
537184
537204
537648
539203
540559
541863
556524
576286
580766
584461
587955
592188
599875
600218
600296
622398
626978
628371
628383
630546
630771
632690
633451
633819
634140
634790
636300
637021
639719
639760
639810
642032
642037
642066
645276
645284
646427
666895
675012
676428
677303
695127
696582
]
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 (409667 , 445737 , 460771 , 485147 , 486868 , 489729 , 495038 , 496853 , 497757 , 505611 , 514711 , 517326 , 524198 , 524786 , 526814 , 529792 , 530495 , 532747 , 532834 , 533837 , 536676 , 537184 , 537204 , 537648 , 539203 , 540559 , 541863 , 556524 , 576286 , 580766 , 584461 , 587955 , 592188 , 599875 , 600218 , 600296 , 622398 , 626978 , 628371 , 628383 , 630546 , 630771 , 632690 , 633451 , 633819 , 634140 , 634790 , 636300 , 637021 , 639719 , 639760 , 639810 , 642032 , 642037 , 642066 , 645276 , 645284 , 646427 , 666895 , 675012 , 676428 , 677303 , 695127 , 696582 );
Copy
5
82.23 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
409667
445737
460771
485147
486868
489729
495038
496853
497757
505611
514711
517326
524198
524786
526814
529792
530495
532747
532834
533837
536676
537184
537204
537648
539203
540559
541863
556524
576286
580766
584461
587955
592188
599875
600218
600296
622398
626978
628371
628383
630546
630771
632690
633451
633819
634140
634790
636300
637021
639719
639760
639810
642032
642037
642066
645276
645284
646427
666895
675012
676428
677303
695127
696582
]
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 (409667 , 445737 , 460771 , 485147 , 486868 , 489729 , 495038 , 496853 , 497757 , 505611 , 514711 , 517326 , 524198 , 524786 , 526814 , 529792 , 530495 , 532747 , 532834 , 533837 , 536676 , 537184 , 537204 , 537648 , 539203 , 540559 , 541863 , 556524 , 576286 , 580766 , 584461 , 587955 , 592188 , 599875 , 600218 , 600296 , 622398 , 626978 , 628371 , 628383 , 630546 , 630771 , 632690 , 633451 , 633819 , 634140 , 634790 , 636300 , 637021 , 639719 , 639760 , 639810 , 642032 , 642037 , 642066 , 645276 , 645284 , 646427 , 666895 , 675012 , 676428 , 677303 , 695127 , 696582 );
Copy