4
11.64 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
592873
594769
591968
634607
799591
731480
735057
748383
475239
400842
443210
503699
487168
499276
488669
508572
497996
521090
424378
479675
446236
452641
459758
504955
528525
653407
565738
580450
580518
595339
488026
485748
496221
442994
507306
517361
524999
526267
514214
604689
618622
622252
770271
473594
446964
520062
524982
511776
428757
448882
455217
524047
625607
618230
441203
488197
472777
560804
535711
653405
632701
479219
488473
524915
465336
]
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 (592873 , 594769 , 591968 , 634607 , 799591 , 731480 , 735057 , 748383 , 475239 , 400842 , 443210 , 503699 , 487168 , 499276 , 488669 , 508572 , 497996 , 521090 , 424378 , 479675 , 446236 , 452641 , 459758 , 504955 , 528525 , 653407 , 565738 , 580450 , 580518 , 595339 , 488026 , 485748 , 496221 , 442994 , 507306 , 517361 , 524999 , 526267 , 514214 , 604689 , 618622 , 622252 , 770271 , 473594 , 446964 , 520062 , 524982 , 511776 , 428757 , 448882 , 455217 , 524047 , 625607 , 618230 , 441203 , 488197 , 472777 , 560804 , 535711 , 653405 , 632701 , 479219 , 488473 , 524915 , 465336 );
Copy
5
2.89 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
400842
424378
428757
441203
442994
443210
446236
446964
448882
452641
455217
459758
465336
472777
473594
475239
479219
479675
485748
487168
488026
488197
488473
488669
496221
497996
499276
503699
504955
507306
508572
511776
514214
517361
520062
521090
524047
524915
524982
524999
526267
528525
535711
560804
565738
580450
580518
591968
592873
594769
595339
604689
618230
618622
622252
625607
632701
634607
653405
653407
731480
735057
748383
770271
799591
]
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 (400842 , 424378 , 428757 , 441203 , 442994 , 443210 , 446236 , 446964 , 448882 , 452641 , 455217 , 459758 , 465336 , 472777 , 473594 , 475239 , 479219 , 479675 , 485748 , 487168 , 488026 , 488197 , 488473 , 488669 , 496221 , 497996 , 499276 , 503699 , 504955 , 507306 , 508572 , 511776 , 514214 , 517361 , 520062 , 521090 , 524047 , 524915 , 524982 , 524999 , 526267 , 528525 , 535711 , 560804 , 565738 , 580450 , 580518 , 591968 , 592873 , 594769 , 595339 , 604689 , 618230 , 618622 , 622252 , 625607 , 632701 , 634607 , 653405 , 653407 , 731480 , 735057 , 748383 , 770271 , 799591 );
Copy
6
74.46 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
400842
424378
428757
441203
442994
443210
446236
446964
448882
452641
455217
459758
465336
472777
473594
475239
479219
479675
485748
487168
488026
488197
488473
488669
496221
497996
499276
503699
504955
507306
508572
511776
514214
517361
520062
521090
524047
524915
524982
524999
526267
528525
535711
560804
565738
580450
580518
591968
592873
594769
595339
604689
618230
618622
622252
625607
632701
634607
653405
653407
731480
735057
748383
770271
799591
]
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 (400842 , 424378 , 428757 , 441203 , 442994 , 443210 , 446236 , 446964 , 448882 , 452641 , 455217 , 459758 , 465336 , 472777 , 473594 , 475239 , 479219 , 479675 , 485748 , 487168 , 488026 , 488197 , 488473 , 488669 , 496221 , 497996 , 499276 , 503699 , 504955 , 507306 , 508572 , 511776 , 514214 , 517361 , 520062 , 521090 , 524047 , 524915 , 524982 , 524999 , 526267 , 528525 , 535711 , 560804 , 565738 , 580450 , 580518 , 591968 , 592873 , 594769 , 595339 , 604689 , 618230 , 618622 , 622252 , 625607 , 632701 , 634607 , 653405 , 653407 , 731480 , 735057 , 748383 , 770271 , 799591 );
Copy