3
11.35 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
593601
789282
820218
651404
812998
693305
725186
713015
802600
459282
737411
732648
824989
732634
777907
707517
737863
396841
590277
824998
664175
800751
543276
651812
512095
517987
714956
625608
770744
625880
613176
425345
522948
385039
644207
585591
761343
770601
784256
674066
772318
730705
453489
418899
506754
524980
517063
718376
619509
462323
528800
513357
528799
420903
488663
537481
586912
623367
632818
786230
395684
398027
518733
488829
440532
506599
522230
518946
614097
442918
451042
485788
611241
560517
590514
]
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 (593601 , 789282 , 820218 , 651404 , 812998 , 693305 , 725186 , 713015 , 802600 , 459282 , 737411 , 732648 , 824989 , 732634 , 777907 , 707517 , 737863 , 396841 , 590277 , 824998 , 664175 , 800751 , 543276 , 651812 , 512095 , 517987 , 714956 , 625608 , 770744 , 625880 , 613176 , 425345 , 522948 , 385039 , 644207 , 585591 , 761343 , 770601 , 784256 , 674066 , 772318 , 730705 , 453489 , 418899 , 506754 , 524980 , 517063 , 718376 , 619509 , 462323 , 528800 , 513357 , 528799 , 420903 , 488663 , 537481 , 586912 , 623367 , 632818 , 786230 , 395684 , 398027 , 518733 , 488829 , 440532 , 506599 , 522230 , 518946 , 614097 , 442918 , 451042 , 485788 , 611241 , 560517 , 590514 );
Copy
4
2.92 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
385039
395684
396841
398027
418899
420903
425345
440532
442918
451042
453489
459282
462323
485788
488663
488829
506599
506754
512095
513357
517063
517987
518733
518946
522230
522948
524980
528799
528800
537481
543276
560517
585591
586912
590277
590514
593601
611241
613176
614097
619509
623367
625608
625880
632818
644207
651404
651812
664175
674066
693305
707517
713015
714956
718376
725186
730705
732634
732648
737411
737863
761343
770601
770744
772318
777907
784256
786230
789282
800751
802600
812998
820218
824989
824998
]
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 (385039 , 395684 , 396841 , 398027 , 418899 , 420903 , 425345 , 440532 , 442918 , 451042 , 453489 , 459282 , 462323 , 485788 , 488663 , 488829 , 506599 , 506754 , 512095 , 513357 , 517063 , 517987 , 518733 , 518946 , 522230 , 522948 , 524980 , 528799 , 528800 , 537481 , 543276 , 560517 , 585591 , 586912 , 590277 , 590514 , 593601 , 611241 , 613176 , 614097 , 619509 , 623367 , 625608 , 625880 , 632818 , 644207 , 651404 , 651812 , 664175 , 674066 , 693305 , 707517 , 713015 , 714956 , 718376 , 725186 , 730705 , 732634 , 732648 , 737411 , 737863 , 761343 , 770601 , 770744 , 772318 , 777907 , 784256 , 786230 , 789282 , 800751 , 802600 , 812998 , 820218 , 824989 , 824998 );
Copy
5
512.68 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
385039
395684
396841
398027
418899
420903
425345
440532
442918
451042
453489
459282
462323
485788
488663
488829
506599
506754
512095
513357
517063
517987
518733
518946
522230
522948
524980
528799
528800
537481
543276
560517
585591
586912
590277
590514
593601
611241
613176
614097
619509
623367
625608
625880
632818
644207
651404
651812
664175
674066
693305
707517
713015
714956
718376
725186
730705
732634
732648
737411
737863
761343
770601
770744
772318
777907
784256
786230
789282
800751
802600
812998
820218
824989
824998
]
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 (385039 , 395684 , 396841 , 398027 , 418899 , 420903 , 425345 , 440532 , 442918 , 451042 , 453489 , 459282 , 462323 , 485788 , 488663 , 488829 , 506599 , 506754 , 512095 , 513357 , 517063 , 517987 , 518733 , 518946 , 522230 , 522948 , 524980 , 528799 , 528800 , 537481 , 543276 , 560517 , 585591 , 586912 , 590277 , 590514 , 593601 , 611241 , 613176 , 614097 , 619509 , 623367 , 625608 , 625880 , 632818 , 644207 , 651404 , 651812 , 664175 , 674066 , 693305 , 707517 , 713015 , 714956 , 718376 , 725186 , 730705 , 732634 , 732648 , 737411 , 737863 , 761343 , 770601 , 770744 , 772318 , 777907 , 784256 , 786230 , 789282 , 800751 , 802600 , 812998 , 820218 , 824989 , 824998 );
Copy