3
11.84 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
451090
456856
391150
486233
465996
426479
506813
804422
550491
545491
556998
548756
485604
426480
436758
521172
504279
557360
692421
553601
482923
526877
527766
824683
495489
547881
453982
523903
456627
553189
461805
553205
553591
481772
476428
482919
456634
553517
570956
451089
553545
511040
448925
500508
557978
553554
504196
499587
470535
456630
502858
516772
509834
455222
423913
557946
438009
443161
475876
471620
432692
444288
470089
]
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 (451090 , 456856 , 391150 , 486233 , 465996 , 426479 , 506813 , 804422 , 550491 , 545491 , 556998 , 548756 , 485604 , 426480 , 436758 , 521172 , 504279 , 557360 , 692421 , 553601 , 482923 , 526877 , 527766 , 824683 , 495489 , 547881 , 453982 , 523903 , 456627 , 553189 , 461805 , 553205 , 553591 , 481772 , 476428 , 482919 , 456634 , 553517 , 570956 , 451089 , 553545 , 511040 , 448925 , 500508 , 557978 , 553554 , 504196 , 499587 , 470535 , 456630 , 502858 , 516772 , 509834 , 455222 , 423913 , 557946 , 438009 , 443161 , 475876 , 471620 , 432692 , 444288 , 470089 );
Copy
4
2.34 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
391150
423913
426479
426480
432692
436758
438009
443161
444288
448925
451089
451090
453982
455222
456627
456630
456634
456856
461805
465996
470089
470535
471620
475876
476428
481772
482919
482923
485604
486233
495489
499587
500508
502858
504196
504279
506813
509834
511040
516772
521172
523903
526877
527766
545491
547881
548756
550491
553189
553205
553517
553545
553554
553591
553601
556998
557360
557946
557978
570956
692421
804422
824683
]
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 (391150 , 423913 , 426479 , 426480 , 432692 , 436758 , 438009 , 443161 , 444288 , 448925 , 451089 , 451090 , 453982 , 455222 , 456627 , 456630 , 456634 , 456856 , 461805 , 465996 , 470089 , 470535 , 471620 , 475876 , 476428 , 481772 , 482919 , 482923 , 485604 , 486233 , 495489 , 499587 , 500508 , 502858 , 504196 , 504279 , 506813 , 509834 , 511040 , 516772 , 521172 , 523903 , 526877 , 527766 , 545491 , 547881 , 548756 , 550491 , 553189 , 553205 , 553517 , 553545 , 553554 , 553591 , 553601 , 556998 , 557360 , 557946 , 557978 , 570956 , 692421 , 804422 , 824683 );
Copy
5
66.39 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
391150
423913
426479
426480
432692
436758
438009
443161
444288
448925
451089
451090
453982
455222
456627
456630
456634
456856
461805
465996
470089
470535
471620
475876
476428
481772
482919
482923
485604
486233
495489
499587
500508
502858
504196
504279
506813
509834
511040
516772
521172
523903
526877
527766
545491
547881
548756
550491
553189
553205
553517
553545
553554
553591
553601
556998
557360
557946
557978
570956
692421
804422
824683
]
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 (391150 , 423913 , 426479 , 426480 , 432692 , 436758 , 438009 , 443161 , 444288 , 448925 , 451089 , 451090 , 453982 , 455222 , 456627 , 456630 , 456634 , 456856 , 461805 , 465996 , 470089 , 470535 , 471620 , 475876 , 476428 , 481772 , 482919 , 482923 , 485604 , 486233 , 495489 , 499587 , 500508 , 502858 , 504196 , 504279 , 506813 , 509834 , 511040 , 516772 , 521172 , 523903 , 526877 , 527766 , 545491 , 547881 , 548756 , 550491 , 553189 , 553205 , 553517 , 553545 , 553554 , 553591 , 553601 , 556998 , 557360 , 557946 , 557978 , 570956 , 692421 , 804422 , 824683 );
Copy