3
10.17 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
771459
456248
631818
710031
826301
748627
825970
659966
640993
398623
624351
788008
3522
488911
812188
471577
414434
467120
638063
736586
467109
116603
458244
706240
591554
780243
529077
589265
481286
657780
551170
509715
487802
485489
493293
575182
573416
584867
673345
590900
750241
644685
454736
385102
470511
452201
573426
592461
599542
424489
458897
485913
536888
427262
500207
527865
572201
428965
472958
455503
469601
458893
498237
446109
]
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 (771459 , 456248 , 631818 , 710031 , 826301 , 748627 , 825970 , 659966 , 640993 , 398623 , 624351 , 788008 , 3522 , 488911 , 812188 , 471577 , 414434 , 467120 , 638063 , 736586 , 467109 , 116603 , 458244 , 706240 , 591554 , 780243 , 529077 , 589265 , 481286 , 657780 , 551170 , 509715 , 487802 , 485489 , 493293 , 575182 , 573416 , 584867 , 673345 , 590900 , 750241 , 644685 , 454736 , 385102 , 470511 , 452201 , 573426 , 592461 , 599542 , 424489 , 458897 , 485913 , 536888 , 427262 , 500207 , 527865 , 572201 , 428965 , 472958 , 455503 , 469601 , 458893 , 498237 , 446109 );
Copy
4
2.90 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
3522
116603
385102
398623
414434
424489
427262
428965
446109
452201
454736
455503
456248
458244
458893
458897
467109
467120
469601
470511
471577
472958
481286
485489
485913
487802
488911
493293
498237
500207
509715
527865
529077
536888
551170
572201
573416
573426
575182
584867
589265
590900
591554
592461
599542
624351
631818
638063
640993
644685
657780
659966
673345
706240
710031
736586
748627
750241
771459
780243
788008
812188
825970
826301
]
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 (3522 , 116603 , 385102 , 398623 , 414434 , 424489 , 427262 , 428965 , 446109 , 452201 , 454736 , 455503 , 456248 , 458244 , 458893 , 458897 , 467109 , 467120 , 469601 , 470511 , 471577 , 472958 , 481286 , 485489 , 485913 , 487802 , 488911 , 493293 , 498237 , 500207 , 509715 , 527865 , 529077 , 536888 , 551170 , 572201 , 573416 , 573426 , 575182 , 584867 , 589265 , 590900 , 591554 , 592461 , 599542 , 624351 , 631818 , 638063 , 640993 , 644685 , 657780 , 659966 , 673345 , 706240 , 710031 , 736586 , 748627 , 750241 , 771459 , 780243 , 788008 , 812188 , 825970 , 826301 );
Copy
5
72.74 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
3522
116603
385102
398623
414434
424489
427262
428965
446109
452201
454736
455503
456248
458244
458893
458897
467109
467120
469601
470511
471577
472958
481286
485489
485913
487802
488911
493293
498237
500207
509715
527865
529077
536888
551170
572201
573416
573426
575182
584867
589265
590900
591554
592461
599542
624351
631818
638063
640993
644685
657780
659966
673345
706240
710031
736586
748627
750241
771459
780243
788008
812188
825970
826301
]
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 (3522 , 116603 , 385102 , 398623 , 414434 , 424489 , 427262 , 428965 , 446109 , 452201 , 454736 , 455503 , 456248 , 458244 , 458893 , 458897 , 467109 , 467120 , 469601 , 470511 , 471577 , 472958 , 481286 , 485489 , 485913 , 487802 , 488911 , 493293 , 498237 , 500207 , 509715 , 527865 , 529077 , 536888 , 551170 , 572201 , 573416 , 573426 , 575182 , 584867 , 589265 , 590900 , 591554 , 592461 , 599542 , 624351 , 631818 , 638063 , 640993 , 644685 , 657780 , 659966 , 673345 , 706240 , 710031 , 736586 , 748627 , 750241 , 771459 , 780243 , 788008 , 812188 , 825970 , 826301 );
Copy