3
15.13 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
617502
755995
777056
497878
725312
799270
471149
497881
544429
452261
508277
809117
458790
532848
452310
415147
497869
459166
446131
573314
760012
760031
760009
760804
497873
806339
742250
756073
717819
603100
716118
807945
756241
806346
775908
719983
612917
479813
629199
704205
823685
787514
388007
390670
373877
818581
462907
386734
401014
464083
393094
467092
401104
419387
469609
448564
497891
787564
451112
396625
469527
608939
465641
358438
648583
604386
665672
629333
518168
498626
660747
620290
]
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 (617502 , 755995 , 777056 , 497878 , 725312 , 799270 , 471149 , 497881 , 544429 , 452261 , 508277 , 809117 , 458790 , 532848 , 452310 , 415147 , 497869 , 459166 , 446131 , 573314 , 760012 , 760031 , 760009 , 760804 , 497873 , 806339 , 742250 , 756073 , 717819 , 603100 , 716118 , 807945 , 756241 , 806346 , 775908 , 719983 , 612917 , 479813 , 629199 , 704205 , 823685 , 787514 , 388007 , 390670 , 373877 , 818581 , 462907 , 386734 , 401014 , 464083 , 393094 , 467092 , 401104 , 419387 , 469609 , 448564 , 497891 , 787564 , 451112 , 396625 , 469527 , 608939 , 465641 , 358438 , 648583 , 604386 , 665672 , 629333 , 518168 , 498626 , 660747 , 620290 );
Copy
4
2.18 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
358438
373877
386734
388007
390670
393094
396625
401014
401104
415147
419387
446131
448564
451112
452261
452310
458790
459166
462907
464083
465641
467092
469527
469609
471149
479813
497869
497873
497878
497881
497891
498626
508277
518168
532848
544429
573314
603100
604386
608939
612917
617502
620290
629199
629333
648583
660747
665672
704205
716118
717819
719983
725312
742250
755995
756073
756241
760009
760012
760031
760804
775908
777056
787514
787564
799270
806339
806346
807945
809117
818581
823685
]
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 (358438 , 373877 , 386734 , 388007 , 390670 , 393094 , 396625 , 401014 , 401104 , 415147 , 419387 , 446131 , 448564 , 451112 , 452261 , 452310 , 458790 , 459166 , 462907 , 464083 , 465641 , 467092 , 469527 , 469609 , 471149 , 479813 , 497869 , 497873 , 497878 , 497881 , 497891 , 498626 , 508277 , 518168 , 532848 , 544429 , 573314 , 603100 , 604386 , 608939 , 612917 , 617502 , 620290 , 629199 , 629333 , 648583 , 660747 , 665672 , 704205 , 716118 , 717819 , 719983 , 725312 , 742250 , 755995 , 756073 , 756241 , 760009 , 760012 , 760031 , 760804 , 775908 , 777056 , 787514 , 787564 , 799270 , 806339 , 806346 , 807945 , 809117 , 818581 , 823685 );
Copy
5
117.99 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
358438
373877
386734
388007
390670
393094
396625
401014
401104
415147
419387
446131
448564
451112
452261
452310
458790
459166
462907
464083
465641
467092
469527
469609
471149
479813
497869
497873
497878
497881
497891
498626
508277
518168
532848
544429
573314
603100
604386
608939
612917
617502
620290
629199
629333
648583
660747
665672
704205
716118
717819
719983
725312
742250
755995
756073
756241
760009
760012
760031
760804
775908
777056
787514
787564
799270
806339
806346
807945
809117
818581
823685
]
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 (358438 , 373877 , 386734 , 388007 , 390670 , 393094 , 396625 , 401014 , 401104 , 415147 , 419387 , 446131 , 448564 , 451112 , 452261 , 452310 , 458790 , 459166 , 462907 , 464083 , 465641 , 467092 , 469527 , 469609 , 471149 , 479813 , 497869 , 497873 , 497878 , 497881 , 497891 , 498626 , 508277 , 518168 , 532848 , 544429 , 573314 , 603100 , 604386 , 608939 , 612917 , 617502 , 620290 , 629199 , 629333 , 648583 , 660747 , 665672 , 704205 , 716118 , 717819 , 719983 , 725312 , 742250 , 755995 , 756073 , 756241 , 760009 , 760012 , 760031 , 760804 , 775908 , 777056 , 787514 , 787564 , 799270 , 806339 , 806346 , 807945 , 809117 , 818581 , 823685 );
Copy