4
10.01 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
782294
552901
717868
309604
397977
693333
801547
562187
646066
799794
724540
811242
716144
588213
796493
805160
807870
383517
561916
596838
803501
724442
807588
400906
89769
524959
496846
580027
677284
693310
795434
785004
790927
814395
779239
807786
738926
772227
814417
566083
717620
592968
773936
808909
798589
390070
420106
503444
530146
713885
586005
626074
388325
630078
422957
407515
605742
471464
558012
422512
620257
583723
599545
]
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 (782294 , 552901 , 717868 , 309604 , 397977 , 693333 , 801547 , 562187 , 646066 , 799794 , 724540 , 811242 , 716144 , 588213 , 796493 , 805160 , 807870 , 383517 , 561916 , 596838 , 803501 , 724442 , 807588 , 400906 , 89769 , 524959 , 496846 , 580027 , 677284 , 693310 , 795434 , 785004 , 790927 , 814395 , 779239 , 807786 , 738926 , 772227 , 814417 , 566083 , 717620 , 592968 , 773936 , 808909 , 798589 , 390070 , 420106 , 503444 , 530146 , 713885 , 586005 , 626074 , 388325 , 630078 , 422957 , 407515 , 605742 , 471464 , 558012 , 422512 , 620257 , 583723 , 599545 );
Copy
5
3.34 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
89769
309604
383517
388325
390070
397977
400906
407515
420106
422512
422957
471464
496846
503444
524959
530146
552901
558012
561916
562187
566083
580027
583723
586005
588213
592968
596838
599545
605742
620257
626074
630078
646066
677284
693310
693333
713885
716144
717620
717868
724442
724540
738926
772227
773936
779239
782294
785004
790927
795434
796493
798589
799794
801547
803501
805160
807588
807786
807870
808909
811242
814395
814417
]
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 (89769 , 309604 , 383517 , 388325 , 390070 , 397977 , 400906 , 407515 , 420106 , 422512 , 422957 , 471464 , 496846 , 503444 , 524959 , 530146 , 552901 , 558012 , 561916 , 562187 , 566083 , 580027 , 583723 , 586005 , 588213 , 592968 , 596838 , 599545 , 605742 , 620257 , 626074 , 630078 , 646066 , 677284 , 693310 , 693333 , 713885 , 716144 , 717620 , 717868 , 724442 , 724540 , 738926 , 772227 , 773936 , 779239 , 782294 , 785004 , 790927 , 795434 , 796493 , 798589 , 799794 , 801547 , 803501 , 805160 , 807588 , 807786 , 807870 , 808909 , 811242 , 814395 , 814417 );
Copy
6
80.76 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
89769
309604
383517
388325
390070
397977
400906
407515
420106
422512
422957
471464
496846
503444
524959
530146
552901
558012
561916
562187
566083
580027
583723
586005
588213
592968
596838
599545
605742
620257
626074
630078
646066
677284
693310
693333
713885
716144
717620
717868
724442
724540
738926
772227
773936
779239
782294
785004
790927
795434
796493
798589
799794
801547
803501
805160
807588
807786
807870
808909
811242
814395
814417
]
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 (89769 , 309604 , 383517 , 388325 , 390070 , 397977 , 400906 , 407515 , 420106 , 422512 , 422957 , 471464 , 496846 , 503444 , 524959 , 530146 , 552901 , 558012 , 561916 , 562187 , 566083 , 580027 , 583723 , 586005 , 588213 , 592968 , 596838 , 599545 , 605742 , 620257 , 626074 , 630078 , 646066 , 677284 , 693310 , 693333 , 713885 , 716144 , 717620 , 717868 , 724442 , 724540 , 738926 , 772227 , 773936 , 779239 , 782294 , 785004 , 790927 , 795434 , 796493 , 798589 , 799794 , 801547 , 803501 , 805160 , 807588 , 807786 , 807870 , 808909 , 811242 , 814395 , 814417 );
Copy