3
11.47 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
760079
736017
744197
750601
813136
340613
428932
465138
418467
509716
385977
423958
455591
496889
518014
488277
547543
560046
551646
553442
685509
650511
672305
545001
576319
586421
596828
609574
636391
776217
784605
791857
760392
629500
709654
804435
439345
470979
439333
478992
499661
502877
441331
413253
517142
517950
558174
548966
557989
715462
648046
592975
447385
506442
501015
546762
568726
570867
715282
597781
613780
613800
779840
714380
569315
624166
775321
569309
603286
447178
]
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 (760079 , 736017 , 744197 , 750601 , 813136 , 340613 , 428932 , 465138 , 418467 , 509716 , 385977 , 423958 , 455591 , 496889 , 518014 , 488277 , 547543 , 560046 , 551646 , 553442 , 685509 , 650511 , 672305 , 545001 , 576319 , 586421 , 596828 , 609574 , 636391 , 776217 , 784605 , 791857 , 760392 , 629500 , 709654 , 804435 , 439345 , 470979 , 439333 , 478992 , 499661 , 502877 , 441331 , 413253 , 517142 , 517950 , 558174 , 548966 , 557989 , 715462 , 648046 , 592975 , 447385 , 506442 , 501015 , 546762 , 568726 , 570867 , 715282 , 597781 , 613780 , 613800 , 779840 , 714380 , 569315 , 624166 , 775321 , 569309 , 603286 , 447178 );
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
340613
385977
413253
418467
423958
428932
439333
439345
441331
447178
447385
455591
465138
470979
478992
488277
496889
499661
501015
502877
506442
509716
517142
517950
518014
545001
546762
547543
548966
551646
553442
557989
558174
560046
568726
569309
569315
570867
576319
586421
592975
596828
597781
603286
609574
613780
613800
624166
629500
636391
648046
650511
672305
685509
709654
714380
715282
715462
736017
744197
750601
760079
760392
775321
776217
779840
784605
791857
804435
813136
]
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 (340613 , 385977 , 413253 , 418467 , 423958 , 428932 , 439333 , 439345 , 441331 , 447178 , 447385 , 455591 , 465138 , 470979 , 478992 , 488277 , 496889 , 499661 , 501015 , 502877 , 506442 , 509716 , 517142 , 517950 , 518014 , 545001 , 546762 , 547543 , 548966 , 551646 , 553442 , 557989 , 558174 , 560046 , 568726 , 569309 , 569315 , 570867 , 576319 , 586421 , 592975 , 596828 , 597781 , 603286 , 609574 , 613780 , 613800 , 624166 , 629500 , 636391 , 648046 , 650511 , 672305 , 685509 , 709654 , 714380 , 715282 , 715462 , 736017 , 744197 , 750601 , 760079 , 760392 , 775321 , 776217 , 779840 , 784605 , 791857 , 804435 , 813136 );
Copy
5
81.10 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
340613
385977
413253
418467
423958
428932
439333
439345
441331
447178
447385
455591
465138
470979
478992
488277
496889
499661
501015
502877
506442
509716
517142
517950
518014
545001
546762
547543
548966
551646
553442
557989
558174
560046
568726
569309
569315
570867
576319
586421
592975
596828
597781
603286
609574
613780
613800
624166
629500
636391
648046
650511
672305
685509
709654
714380
715282
715462
736017
744197
750601
760079
760392
775321
776217
779840
784605
791857
804435
813136
]
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 (340613 , 385977 , 413253 , 418467 , 423958 , 428932 , 439333 , 439345 , 441331 , 447178 , 447385 , 455591 , 465138 , 470979 , 478992 , 488277 , 496889 , 499661 , 501015 , 502877 , 506442 , 509716 , 517142 , 517950 , 518014 , 545001 , 546762 , 547543 , 548966 , 551646 , 553442 , 557989 , 558174 , 560046 , 568726 , 569309 , 569315 , 570867 , 576319 , 586421 , 592975 , 596828 , 597781 , 603286 , 609574 , 613780 , 613800 , 624166 , 629500 , 636391 , 648046 , 650511 , 672305 , 685509 , 709654 , 714380 , 715282 , 715462 , 736017 , 744197 , 750601 , 760079 , 760392 , 775321 , 776217 , 779840 , 784605 , 791857 , 804435 , 813136 );
Copy