3
11.77 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
552350
575272
551816
625436
602742
590076
610828
426919
464477
442756
421030
421043
525298
504758
458394
417303
516438
436447
490566
496537
522311
496330
554253
489712
518761
432510
426908
514315
552344
447839
472774
557040
446268
473898
520196
526805
529777
543565
621347
589427
456888
525428
560507
565788
463783
427327
435697
504739
455151
508974
516155
519903
523026
509345
543434
523492
538027
458608
608737
462208
496100
622987
615429
507596
569955
]
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 (552350 , 575272 , 551816 , 625436 , 602742 , 590076 , 610828 , 426919 , 464477 , 442756 , 421030 , 421043 , 525298 , 504758 , 458394 , 417303 , 516438 , 436447 , 490566 , 496537 , 522311 , 496330 , 554253 , 489712 , 518761 , 432510 , 426908 , 514315 , 552344 , 447839 , 472774 , 557040 , 446268 , 473898 , 520196 , 526805 , 529777 , 543565 , 621347 , 589427 , 456888 , 525428 , 560507 , 565788 , 463783 , 427327 , 435697 , 504739 , 455151 , 508974 , 516155 , 519903 , 523026 , 509345 , 543434 , 523492 , 538027 , 458608 , 608737 , 462208 , 496100 , 622987 , 615429 , 507596 , 569955 );
Copy
4
2.64 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
417303
421030
421043
426908
426919
427327
432510
435697
436447
442756
446268
447839
455151
456888
458394
458608
462208
463783
464477
472774
473898
489712
490566
496100
496330
496537
504739
504758
507596
508974
509345
514315
516155
516438
518761
519903
520196
522311
523026
523492
525298
525428
526805
529777
538027
543434
543565
551816
552344
552350
554253
557040
560507
565788
569955
575272
589427
590076
602742
608737
610828
615429
621347
622987
625436
]
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 (417303 , 421030 , 421043 , 426908 , 426919 , 427327 , 432510 , 435697 , 436447 , 442756 , 446268 , 447839 , 455151 , 456888 , 458394 , 458608 , 462208 , 463783 , 464477 , 472774 , 473898 , 489712 , 490566 , 496100 , 496330 , 496537 , 504739 , 504758 , 507596 , 508974 , 509345 , 514315 , 516155 , 516438 , 518761 , 519903 , 520196 , 522311 , 523026 , 523492 , 525298 , 525428 , 526805 , 529777 , 538027 , 543434 , 543565 , 551816 , 552344 , 552350 , 554253 , 557040 , 560507 , 565788 , 569955 , 575272 , 589427 , 590076 , 602742 , 608737 , 610828 , 615429 , 621347 , 622987 , 625436 );
Copy
5
83.57 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
417303
421030
421043
426908
426919
427327
432510
435697
436447
442756
446268
447839
455151
456888
458394
458608
462208
463783
464477
472774
473898
489712
490566
496100
496330
496537
504739
504758
507596
508974
509345
514315
516155
516438
518761
519903
520196
522311
523026
523492
525298
525428
526805
529777
538027
543434
543565
551816
552344
552350
554253
557040
560507
565788
569955
575272
589427
590076
602742
608737
610828
615429
621347
622987
625436
]
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 (417303 , 421030 , 421043 , 426908 , 426919 , 427327 , 432510 , 435697 , 436447 , 442756 , 446268 , 447839 , 455151 , 456888 , 458394 , 458608 , 462208 , 463783 , 464477 , 472774 , 473898 , 489712 , 490566 , 496100 , 496330 , 496537 , 504739 , 504758 , 507596 , 508974 , 509345 , 514315 , 516155 , 516438 , 518761 , 519903 , 520196 , 522311 , 523026 , 523492 , 525298 , 525428 , 526805 , 529777 , 538027 , 543434 , 543565 , 551816 , 552344 , 552350 , 554253 , 557040 , 560507 , 565788 , 569955 , 575272 , 589427 , 590076 , 602742 , 608737 , 610828 , 615429 , 621347 , 622987 , 625436 );
Copy