3
215.91 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
626279
472631
405859
456036
412985
485942
499712
480731
651891
554394
724252
639008
808669
667693
604597
699804
748253
488894
551931
413461
466945
458623
518949
487933
188669
812320
510363
782236
452445
454218
664954
640723
487360
598979
454526
575676
668943
503553
450172
558287
411948
464965
486530
481295
544473
525138
514902
550325
550307
471584
452638
466790
487938
482304
531534
491022
459827
381752
531316
498388
467009
409253
578823
511601
574384
]
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 (626279 , 472631 , 405859 , 456036 , 412985 , 485942 , 499712 , 480731 , 651891 , 554394 , 724252 , 639008 , 808669 , 667693 , 604597 , 699804 , 748253 , 488894 , 551931 , 413461 , 466945 , 458623 , 518949 , 487933 , 188669 , 812320 , 510363 , 782236 , 452445 , 454218 , 664954 , 640723 , 487360 , 598979 , 454526 , 575676 , 668943 , 503553 , 450172 , 558287 , 411948 , 464965 , 486530 , 481295 , 544473 , 525138 , 514902 , 550325 , 550307 , 471584 , 452638 , 466790 , 487938 , 482304 , 531534 , 491022 , 459827 , 381752 , 531316 , 498388 , 467009 , 409253 , 578823 , 511601 , 574384 );
Copy
4
3.08 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
188669
381752
405859
409253
411948
412985
413461
450172
452445
452638
454218
454526
456036
458623
459827
464965
466790
466945
467009
471584
472631
480731
481295
482304
485942
486530
487360
487933
487938
488894
491022
498388
499712
503553
510363
511601
514902
518949
525138
531316
531534
544473
550307
550325
551931
554394
558287
574384
575676
578823
598979
604597
626279
639008
640723
651891
664954
667693
668943
699804
724252
748253
782236
808669
812320
]
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 (188669 , 381752 , 405859 , 409253 , 411948 , 412985 , 413461 , 450172 , 452445 , 452638 , 454218 , 454526 , 456036 , 458623 , 459827 , 464965 , 466790 , 466945 , 467009 , 471584 , 472631 , 480731 , 481295 , 482304 , 485942 , 486530 , 487360 , 487933 , 487938 , 488894 , 491022 , 498388 , 499712 , 503553 , 510363 , 511601 , 514902 , 518949 , 525138 , 531316 , 531534 , 544473 , 550307 , 550325 , 551931 , 554394 , 558287 , 574384 , 575676 , 578823 , 598979 , 604597 , 626279 , 639008 , 640723 , 651891 , 664954 , 667693 , 668943 , 699804 , 724252 , 748253 , 782236 , 808669 , 812320 );
Copy
5
102.63 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
188669
381752
405859
409253
411948
412985
413461
450172
452445
452638
454218
454526
456036
458623
459827
464965
466790
466945
467009
471584
472631
480731
481295
482304
485942
486530
487360
487933
487938
488894
491022
498388
499712
503553
510363
511601
514902
518949
525138
531316
531534
544473
550307
550325
551931
554394
558287
574384
575676
578823
598979
604597
626279
639008
640723
651891
664954
667693
668943
699804
724252
748253
782236
808669
812320
]
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 (188669 , 381752 , 405859 , 409253 , 411948 , 412985 , 413461 , 450172 , 452445 , 452638 , 454218 , 454526 , 456036 , 458623 , 459827 , 464965 , 466790 , 466945 , 467009 , 471584 , 472631 , 480731 , 481295 , 482304 , 485942 , 486530 , 487360 , 487933 , 487938 , 488894 , 491022 , 498388 , 499712 , 503553 , 510363 , 511601 , 514902 , 518949 , 525138 , 531316 , 531534 , 544473 , 550307 , 550325 , 551931 , 554394 , 558287 , 574384 , 575676 , 578823 , 598979 , 604597 , 626279 , 639008 , 640723 , 651891 , 664954 , 667693 , 668943 , 699804 , 724252 , 748253 , 782236 , 808669 , 812320 );
Copy