3
12.62 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
730781
595318
758318
774883
546762
813404
276646
758070
441037
670956
585818
432631
523640
448008
626082
551953
560265
498473
570994
419619
483523
567676
421971
456161
596864
499841
544401
564984
627420
580139
665207
596240
671505
523033
470175
407418
408339
468142
491952
480476
493022
453409
515258
519661
529176
506295
624779
604933
519385
663380
588411
465883
475770
623262
535326
543374
482377
560408
512059
564363
668872
665107
607374
624095
486400
]
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 (730781 , 595318 , 758318 , 774883 , 546762 , 813404 , 276646 , 758070 , 441037 , 670956 , 585818 , 432631 , 523640 , 448008 , 626082 , 551953 , 560265 , 498473 , 570994 , 419619 , 483523 , 567676 , 421971 , 456161 , 596864 , 499841 , 544401 , 564984 , 627420 , 580139 , 665207 , 596240 , 671505 , 523033 , 470175 , 407418 , 408339 , 468142 , 491952 , 480476 , 493022 , 453409 , 515258 , 519661 , 529176 , 506295 , 624779 , 604933 , 519385 , 663380 , 588411 , 465883 , 475770 , 623262 , 535326 , 543374 , 482377 , 560408 , 512059 , 564363 , 668872 , 665107 , 607374 , 624095 , 486400 );
Copy
4
2.37 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
276646
407418
408339
419619
421971
432631
441037
448008
453409
456161
465883
468142
470175
475770
480476
482377
483523
486400
491952
493022
498473
499841
506295
512059
515258
519385
519661
523033
523640
529176
535326
543374
544401
546762
551953
560265
560408
564363
564984
567676
570994
580139
585818
588411
595318
596240
596864
604933
607374
623262
624095
624779
626082
627420
663380
665107
665207
668872
670956
671505
730781
758070
758318
774883
813404
]
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 (276646 , 407418 , 408339 , 419619 , 421971 , 432631 , 441037 , 448008 , 453409 , 456161 , 465883 , 468142 , 470175 , 475770 , 480476 , 482377 , 483523 , 486400 , 491952 , 493022 , 498473 , 499841 , 506295 , 512059 , 515258 , 519385 , 519661 , 523033 , 523640 , 529176 , 535326 , 543374 , 544401 , 546762 , 551953 , 560265 , 560408 , 564363 , 564984 , 567676 , 570994 , 580139 , 585818 , 588411 , 595318 , 596240 , 596864 , 604933 , 607374 , 623262 , 624095 , 624779 , 626082 , 627420 , 663380 , 665107 , 665207 , 668872 , 670956 , 671505 , 730781 , 758070 , 758318 , 774883 , 813404 );
Copy
5
98.69 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
276646
407418
408339
419619
421971
432631
441037
448008
453409
456161
465883
468142
470175
475770
480476
482377
483523
486400
491952
493022
498473
499841
506295
512059
515258
519385
519661
523033
523640
529176
535326
543374
544401
546762
551953
560265
560408
564363
564984
567676
570994
580139
585818
588411
595318
596240
596864
604933
607374
623262
624095
624779
626082
627420
663380
665107
665207
668872
670956
671505
730781
758070
758318
774883
813404
]
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 (276646 , 407418 , 408339 , 419619 , 421971 , 432631 , 441037 , 448008 , 453409 , 456161 , 465883 , 468142 , 470175 , 475770 , 480476 , 482377 , 483523 , 486400 , 491952 , 493022 , 498473 , 499841 , 506295 , 512059 , 515258 , 519385 , 519661 , 523033 , 523640 , 529176 , 535326 , 543374 , 544401 , 546762 , 551953 , 560265 , 560408 , 564363 , 564984 , 567676 , 570994 , 580139 , 585818 , 588411 , 595318 , 596240 , 596864 , 604933 , 607374 , 623262 , 624095 , 624779 , 626082 , 627420 , 663380 , 665107 , 665207 , 668872 , 670956 , 671505 , 730781 , 758070 , 758318 , 774883 , 813404 );
Copy