3
14.58 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
812515
744985
780701
427258
402876
472151
424721
517736
529400
593540
587987
610083
452936
474874
480490
515265
479769
713156
710504
515089
681301
485374
452952
419565
424248
476322
515878
467083
665288
667290
591013
466341
479106
499914
525492
390447
486970
517735
667496
667288
454221
526833
382971
463825
506772
593541
502467
544506
629572
466996
515086
381830
794189
452638
663956
386189
598649
525490
678794
620054
615907
544473
]
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 (812515 , 744985 , 780701 , 427258 , 402876 , 472151 , 424721 , 517736 , 529400 , 593540 , 587987 , 610083 , 452936 , 474874 , 480490 , 515265 , 479769 , 713156 , 710504 , 515089 , 681301 , 485374 , 452952 , 419565 , 424248 , 476322 , 515878 , 467083 , 665288 , 667290 , 591013 , 466341 , 479106 , 499914 , 525492 , 390447 , 486970 , 517735 , 667496 , 667288 , 454221 , 526833 , 382971 , 463825 , 506772 , 593541 , 502467 , 544506 , 629572 , 466996 , 515086 , 381830 , 794189 , 452638 , 663956 , 386189 , 598649 , 525490 , 678794 , 620054 , 615907 , 544473 );
Copy
4
3.79 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
381830
382971
386189
390447
402876
419565
424248
424721
427258
452638
452936
452952
454221
463825
466341
466996
467083
472151
474874
476322
479106
479769
480490
485374
486970
499914
502467
506772
515086
515089
515265
515878
517735
517736
525490
525492
526833
529400
544473
544506
587987
591013
593540
593541
598649
610083
615907
620054
629572
663956
665288
667288
667290
667496
678794
681301
710504
713156
744985
780701
794189
812515
]
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 (381830 , 382971 , 386189 , 390447 , 402876 , 419565 , 424248 , 424721 , 427258 , 452638 , 452936 , 452952 , 454221 , 463825 , 466341 , 466996 , 467083 , 472151 , 474874 , 476322 , 479106 , 479769 , 480490 , 485374 , 486970 , 499914 , 502467 , 506772 , 515086 , 515089 , 515265 , 515878 , 517735 , 517736 , 525490 , 525492 , 526833 , 529400 , 544473 , 544506 , 587987 , 591013 , 593540 , 593541 , 598649 , 610083 , 615907 , 620054 , 629572 , 663956 , 665288 , 667288 , 667290 , 667496 , 678794 , 681301 , 710504 , 713156 , 744985 , 780701 , 794189 , 812515 );
Copy
5
98.33 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
381830
382971
386189
390447
402876
419565
424248
424721
427258
452638
452936
452952
454221
463825
466341
466996
467083
472151
474874
476322
479106
479769
480490
485374
486970
499914
502467
506772
515086
515089
515265
515878
517735
517736
525490
525492
526833
529400
544473
544506
587987
591013
593540
593541
598649
610083
615907
620054
629572
663956
665288
667288
667290
667496
678794
681301
710504
713156
744985
780701
794189
812515
]
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 (381830 , 382971 , 386189 , 390447 , 402876 , 419565 , 424248 , 424721 , 427258 , 452638 , 452936 , 452952 , 454221 , 463825 , 466341 , 466996 , 467083 , 472151 , 474874 , 476322 , 479106 , 479769 , 480490 , 485374 , 486970 , 499914 , 502467 , 506772 , 515086 , 515089 , 515265 , 515878 , 517735 , 517736 , 525490 , 525492 , 526833 , 529400 , 544473 , 544506 , 587987 , 591013 , 593540 , 593541 , 598649 , 610083 , 615907 , 620054 , 629572 , 663956 , 665288 , 667288 , 667290 , 667496 , 678794 , 681301 , 710504 , 713156 , 744985 , 780701 , 794189 , 812515 );
Copy