3
14.19 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
515045
525158
434003
454084
602981
629918
541728
528084
426616
424798
421236
430433
443942
421492
434251
817865
459947
578496
569031
813249
474463
450804
430228
511399
533256
630028
798139
496518
421015
699409
527040
435745
510217
510296
519845
519825
529945
532443
569002
611561
586499
811220
477881
450767
510456
486125
651601
433730
532865
569128
561601
652316
555325
580750
587904
797464
430446
448831
528408
593596
533186
519937
586512
428116
459877
556834
530999
529958
427346
470613
486540
587901
508673
492325
520697
]
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 (515045 , 525158 , 434003 , 454084 , 602981 , 629918 , 541728 , 528084 , 426616 , 424798 , 421236 , 430433 , 443942 , 421492 , 434251 , 817865 , 459947 , 578496 , 569031 , 813249 , 474463 , 450804 , 430228 , 511399 , 533256 , 630028 , 798139 , 496518 , 421015 , 699409 , 527040 , 435745 , 510217 , 510296 , 519845 , 519825 , 529945 , 532443 , 569002 , 611561 , 586499 , 811220 , 477881 , 450767 , 510456 , 486125 , 651601 , 433730 , 532865 , 569128 , 561601 , 652316 , 555325 , 580750 , 587904 , 797464 , 430446 , 448831 , 528408 , 593596 , 533186 , 519937 , 586512 , 428116 , 459877 , 556834 , 530999 , 529958 , 427346 , 470613 , 486540 , 587901 , 508673 , 492325 , 520697 );
Copy
4
2.13 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
421015
421236
421492
424798
426616
427346
428116
430228
430433
430446
433730
434003
434251
435745
443942
448831
450767
450804
454084
459877
459947
470613
474463
477881
486125
486540
492325
496518
508673
510217
510296
510456
511399
515045
519825
519845
519937
520697
525158
527040
528084
528408
529945
529958
530999
532443
532865
533186
533256
541728
555325
556834
561601
569002
569031
569128
578496
580750
586499
586512
587901
587904
593596
602981
611561
629918
630028
651601
652316
699409
797464
798139
811220
813249
817865
]
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 (421015 , 421236 , 421492 , 424798 , 426616 , 427346 , 428116 , 430228 , 430433 , 430446 , 433730 , 434003 , 434251 , 435745 , 443942 , 448831 , 450767 , 450804 , 454084 , 459877 , 459947 , 470613 , 474463 , 477881 , 486125 , 486540 , 492325 , 496518 , 508673 , 510217 , 510296 , 510456 , 511399 , 515045 , 519825 , 519845 , 519937 , 520697 , 525158 , 527040 , 528084 , 528408 , 529945 , 529958 , 530999 , 532443 , 532865 , 533186 , 533256 , 541728 , 555325 , 556834 , 561601 , 569002 , 569031 , 569128 , 578496 , 580750 , 586499 , 586512 , 587901 , 587904 , 593596 , 602981 , 611561 , 629918 , 630028 , 651601 , 652316 , 699409 , 797464 , 798139 , 811220 , 813249 , 817865 );
Copy
5
87.83 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
421015
421236
421492
424798
426616
427346
428116
430228
430433
430446
433730
434003
434251
435745
443942
448831
450767
450804
454084
459877
459947
470613
474463
477881
486125
486540
492325
496518
508673
510217
510296
510456
511399
515045
519825
519845
519937
520697
525158
527040
528084
528408
529945
529958
530999
532443
532865
533186
533256
541728
555325
556834
561601
569002
569031
569128
578496
580750
586499
586512
587901
587904
593596
602981
611561
629918
630028
651601
652316
699409
797464
798139
811220
813249
817865
]
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 (421015 , 421236 , 421492 , 424798 , 426616 , 427346 , 428116 , 430228 , 430433 , 430446 , 433730 , 434003 , 434251 , 435745 , 443942 , 448831 , 450767 , 450804 , 454084 , 459877 , 459947 , 470613 , 474463 , 477881 , 486125 , 486540 , 492325 , 496518 , 508673 , 510217 , 510296 , 510456 , 511399 , 515045 , 519825 , 519845 , 519937 , 520697 , 525158 , 527040 , 528084 , 528408 , 529945 , 529958 , 530999 , 532443 , 532865 , 533186 , 533256 , 541728 , 555325 , 556834 , 561601 , 569002 , 569031 , 569128 , 578496 , 580750 , 586499 , 586512 , 587901 , 587904 , 593596 , 602981 , 611561 , 629918 , 630028 , 651601 , 652316 , 699409 , 797464 , 798139 , 811220 , 813249 , 817865 );
Copy