3
14.79 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
574566
546015
574833
718798
551847
786552
750701
635074
436703
440693
459319
421922
421878
422151
437960
465075
439813
451639
490996
497923
504141
527341
523840
597015
473139
503617
601982
608336
557042
584857
549569
623089
400491
470302
422155
439749
438018
433323
518622
598172
620411
601991
446894
567024
584236
621239
618943
601363
457789
523171
589450
601906
730798
415836
549736
625983
597148
547612
625437
601851
620124
474663
497921
526951
625440
593366
603933
623405
621764
]
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 (574566 , 546015 , 574833 , 718798 , 551847 , 786552 , 750701 , 635074 , 436703 , 440693 , 459319 , 421922 , 421878 , 422151 , 437960 , 465075 , 439813 , 451639 , 490996 , 497923 , 504141 , 527341 , 523840 , 597015 , 473139 , 503617 , 601982 , 608336 , 557042 , 584857 , 549569 , 623089 , 400491 , 470302 , 422155 , 439749 , 438018 , 433323 , 518622 , 598172 , 620411 , 601991 , 446894 , 567024 , 584236 , 621239 , 618943 , 601363 , 457789 , 523171 , 589450 , 601906 , 730798 , 415836 , 549736 , 625983 , 597148 , 547612 , 625437 , 601851 , 620124 , 474663 , 497921 , 526951 , 625440 , 593366 , 603933 , 623405 , 621764 );
Copy
4
2.78 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
400491
415836
421878
421922
422151
422155
433323
436703
437960
438018
439749
439813
440693
446894
451639
457789
459319
465075
470302
473139
474663
490996
497921
497923
503617
504141
518622
523171
523840
526951
527341
546015
547612
549569
549736
551847
557042
567024
574566
574833
584236
584857
589450
593366
597015
597148
598172
601363
601851
601906
601982
601991
603933
608336
618943
620124
620411
621239
621764
623089
623405
625437
625440
625983
635074
718798
730798
750701
786552
]
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 (400491 , 415836 , 421878 , 421922 , 422151 , 422155 , 433323 , 436703 , 437960 , 438018 , 439749 , 439813 , 440693 , 446894 , 451639 , 457789 , 459319 , 465075 , 470302 , 473139 , 474663 , 490996 , 497921 , 497923 , 503617 , 504141 , 518622 , 523171 , 523840 , 526951 , 527341 , 546015 , 547612 , 549569 , 549736 , 551847 , 557042 , 567024 , 574566 , 574833 , 584236 , 584857 , 589450 , 593366 , 597015 , 597148 , 598172 , 601363 , 601851 , 601906 , 601982 , 601991 , 603933 , 608336 , 618943 , 620124 , 620411 , 621239 , 621764 , 623089 , 623405 , 625437 , 625440 , 625983 , 635074 , 718798 , 730798 , 750701 , 786552 );
Copy
5
87.20 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
400491
415836
421878
421922
422151
422155
433323
436703
437960
438018
439749
439813
440693
446894
451639
457789
459319
465075
470302
473139
474663
490996
497921
497923
503617
504141
518622
523171
523840
526951
527341
546015
547612
549569
549736
551847
557042
567024
574566
574833
584236
584857
589450
593366
597015
597148
598172
601363
601851
601906
601982
601991
603933
608336
618943
620124
620411
621239
621764
623089
623405
625437
625440
625983
635074
718798
730798
750701
786552
]
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 (400491 , 415836 , 421878 , 421922 , 422151 , 422155 , 433323 , 436703 , 437960 , 438018 , 439749 , 439813 , 440693 , 446894 , 451639 , 457789 , 459319 , 465075 , 470302 , 473139 , 474663 , 490996 , 497921 , 497923 , 503617 , 504141 , 518622 , 523171 , 523840 , 526951 , 527341 , 546015 , 547612 , 549569 , 549736 , 551847 , 557042 , 567024 , 574566 , 574833 , 584236 , 584857 , 589450 , 593366 , 597015 , 597148 , 598172 , 601363 , 601851 , 601906 , 601982 , 601991 , 603933 , 608336 , 618943 , 620124 , 620411 , 621239 , 621764 , 623089 , 623405 , 625437 , 625440 , 625983 , 635074 , 718798 , 730798 , 750701 , 786552 );
Copy