3
11.28 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
608939
469527
665672
660747
479813
497878
760012
760031
760009
497873
760804
809117
756073
617502
603100
806339
742250
777056
807945
725312
717819
716118
806346
596120
719983
775908
799270
629199
612917
544429
532848
704205
13066
819260
818581
401104
373877
462907
444652
787564
393094
390670
471149
451112
497881
456886
396625
452310
467092
452261
459166
415147
497891
604386
446131
358438
465641
497869
498626
518168
508277
648583
629333
434553
620290
573314
]
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 (608939 , 469527 , 665672 , 660747 , 479813 , 497878 , 760012 , 760031 , 760009 , 497873 , 760804 , 809117 , 756073 , 617502 , 603100 , 806339 , 742250 , 777056 , 807945 , 725312 , 717819 , 716118 , 806346 , 596120 , 719983 , 775908 , 799270 , 629199 , 612917 , 544429 , 532848 , 704205 , 13066 , 819260 , 818581 , 401104 , 373877 , 462907 , 444652 , 787564 , 393094 , 390670 , 471149 , 451112 , 497881 , 456886 , 396625 , 452310 , 467092 , 452261 , 459166 , 415147 , 497891 , 604386 , 446131 , 358438 , 465641 , 497869 , 498626 , 518168 , 508277 , 648583 , 629333 , 434553 , 620290 , 573314 );
Copy
4
3.15 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
13066
358438
373877
390670
393094
396625
401104
415147
434553
444652
446131
451112
452261
452310
456886
459166
462907
465641
467092
469527
471149
479813
497869
497873
497878
497881
497891
498626
508277
518168
532848
544429
573314
596120
603100
604386
608939
612917
617502
620290
629199
629333
648583
660747
665672
704205
716118
717819
719983
725312
742250
756073
760009
760012
760031
760804
775908
777056
787564
799270
806339
806346
807945
809117
818581
819260
]
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 (13066 , 358438 , 373877 , 390670 , 393094 , 396625 , 401104 , 415147 , 434553 , 444652 , 446131 , 451112 , 452261 , 452310 , 456886 , 459166 , 462907 , 465641 , 467092 , 469527 , 471149 , 479813 , 497869 , 497873 , 497878 , 497881 , 497891 , 498626 , 508277 , 518168 , 532848 , 544429 , 573314 , 596120 , 603100 , 604386 , 608939 , 612917 , 617502 , 620290 , 629199 , 629333 , 648583 , 660747 , 665672 , 704205 , 716118 , 717819 , 719983 , 725312 , 742250 , 756073 , 760009 , 760012 , 760031 , 760804 , 775908 , 777056 , 787564 , 799270 , 806339 , 806346 , 807945 , 809117 , 818581 , 819260 );
Copy
5
84.93 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
13066
358438
373877
390670
393094
396625
401104
415147
434553
444652
446131
451112
452261
452310
456886
459166
462907
465641
467092
469527
471149
479813
497869
497873
497878
497881
497891
498626
508277
518168
532848
544429
573314
596120
603100
604386
608939
612917
617502
620290
629199
629333
648583
660747
665672
704205
716118
717819
719983
725312
742250
756073
760009
760012
760031
760804
775908
777056
787564
799270
806339
806346
807945
809117
818581
819260
]
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 (13066 , 358438 , 373877 , 390670 , 393094 , 396625 , 401104 , 415147 , 434553 , 444652 , 446131 , 451112 , 452261 , 452310 , 456886 , 459166 , 462907 , 465641 , 467092 , 469527 , 471149 , 479813 , 497869 , 497873 , 497878 , 497881 , 497891 , 498626 , 508277 , 518168 , 532848 , 544429 , 573314 , 596120 , 603100 , 604386 , 608939 , 612917 , 617502 , 620290 , 629199 , 629333 , 648583 , 660747 , 665672 , 704205 , 716118 , 717819 , 719983 , 725312 , 742250 , 756073 , 760009 , 760012 , 760031 , 760804 , 775908 , 777056 , 787564 , 799270 , 806339 , 806346 , 807945 , 809117 , 818581 , 819260 );
Copy