4
9.02 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
548175
508444
504414
593525
579515
549563
636259
812479
803757
742681
784671
809864
828129
544519
701490
592970
762513
566264
615819
766146
816881
486729
642144
509947
555826
556432
392064
527823
524562
123614
627646
721843
527821
588899
576161
598141
456466
470532
525839
486189
503498
597528
464534
500335
549783
592758
495877
557942
566375
497240
556762
437960
459703
514949
557948
562282
544528
603536
607919
622229
603854
603906
597240
]
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 (548175 , 508444 , 504414 , 593525 , 579515 , 549563 , 636259 , 812479 , 803757 , 742681 , 784671 , 809864 , 828129 , 544519 , 701490 , 592970 , 762513 , 566264 , 615819 , 766146 , 816881 , 486729 , 642144 , 509947 , 555826 , 556432 , 392064 , 527823 , 524562 , 123614 , 627646 , 721843 , 527821 , 588899 , 576161 , 598141 , 456466 , 470532 , 525839 , 486189 , 503498 , 597528 , 464534 , 500335 , 549783 , 592758 , 495877 , 557942 , 566375 , 497240 , 556762 , 437960 , 459703 , 514949 , 557948 , 562282 , 544528 , 603536 , 607919 , 622229 , 603854 , 603906 , 597240 );
Copy
5
2.41 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
123614
392064
437960
456466
459703
464534
470532
486189
486729
495877
497240
500335
503498
504414
508444
509947
514949
524562
525839
527821
527823
544519
544528
548175
549563
549783
555826
556432
556762
557942
557948
562282
566264
566375
576161
579515
588899
592758
592970
593525
597240
597528
598141
603536
603854
603906
607919
615819
622229
627646
636259
642144
701490
721843
742681
762513
766146
784671
803757
809864
812479
816881
828129
]
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 (123614 , 392064 , 437960 , 456466 , 459703 , 464534 , 470532 , 486189 , 486729 , 495877 , 497240 , 500335 , 503498 , 504414 , 508444 , 509947 , 514949 , 524562 , 525839 , 527821 , 527823 , 544519 , 544528 , 548175 , 549563 , 549783 , 555826 , 556432 , 556762 , 557942 , 557948 , 562282 , 566264 , 566375 , 576161 , 579515 , 588899 , 592758 , 592970 , 593525 , 597240 , 597528 , 598141 , 603536 , 603854 , 603906 , 607919 , 615819 , 622229 , 627646 , 636259 , 642144 , 701490 , 721843 , 742681 , 762513 , 766146 , 784671 , 803757 , 809864 , 812479 , 816881 , 828129 );
Copy
6
113.44 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
123614
392064
437960
456466
459703
464534
470532
486189
486729
495877
497240
500335
503498
504414
508444
509947
514949
524562
525839
527821
527823
544519
544528
548175
549563
549783
555826
556432
556762
557942
557948
562282
566264
566375
576161
579515
588899
592758
592970
593525
597240
597528
598141
603536
603854
603906
607919
615819
622229
627646
636259
642144
701490
721843
742681
762513
766146
784671
803757
809864
812479
816881
828129
]
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 (123614 , 392064 , 437960 , 456466 , 459703 , 464534 , 470532 , 486189 , 486729 , 495877 , 497240 , 500335 , 503498 , 504414 , 508444 , 509947 , 514949 , 524562 , 525839 , 527821 , 527823 , 544519 , 544528 , 548175 , 549563 , 549783 , 555826 , 556432 , 556762 , 557942 , 557948 , 562282 , 566264 , 566375 , 576161 , 579515 , 588899 , 592758 , 592970 , 593525 , 597240 , 597528 , 598141 , 603536 , 603854 , 603906 , 607919 , 615819 , 622229 , 627646 , 636259 , 642144 , 701490 , 721843 , 742681 , 762513 , 766146 , 784671 , 803757 , 809864 , 812479 , 816881 , 828129 );
Copy