3
11.27 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
458560
521022
525221
572943
573360
574995
575777
696312
663568
680653
701774
557984
558952
578189
590258
599045
592592
780718
437114
463123
412609
480672
387973
416099
489483
524831
470947
500470
512318
543837
562008
562342
564138
714428
720301
578081
624821
728317
427107
465938
466916
467319
449760
502008
502989
505966
511709
512243
524414
449761
467516
561890
671208
419378
476492
500976
525230
541051
525224
468842
553720
576007
447464
526663
563472
611984
646901
609591
624005
]
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 (458560 , 521022 , 525221 , 572943 , 573360 , 574995 , 575777 , 696312 , 663568 , 680653 , 701774 , 557984 , 558952 , 578189 , 590258 , 599045 , 592592 , 780718 , 437114 , 463123 , 412609 , 480672 , 387973 , 416099 , 489483 , 524831 , 470947 , 500470 , 512318 , 543837 , 562008 , 562342 , 564138 , 714428 , 720301 , 578081 , 624821 , 728317 , 427107 , 465938 , 466916 , 467319 , 449760 , 502008 , 502989 , 505966 , 511709 , 512243 , 524414 , 449761 , 467516 , 561890 , 671208 , 419378 , 476492 , 500976 , 525230 , 541051 , 525224 , 468842 , 553720 , 576007 , 447464 , 526663 , 563472 , 611984 , 646901 , 609591 , 624005 );
Copy
4
2.58 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
387973
412609
416099
419378
427107
437114
447464
449760
449761
458560
463123
465938
466916
467319
467516
468842
470947
476492
480672
489483
500470
500976
502008
502989
505966
511709
512243
512318
521022
524414
524831
525221
525224
525230
526663
541051
543837
553720
557984
558952
561890
562008
562342
563472
564138
572943
573360
574995
575777
576007
578081
578189
590258
592592
599045
609591
611984
624005
624821
646901
663568
671208
680653
696312
701774
714428
720301
728317
780718
]
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 (387973 , 412609 , 416099 , 419378 , 427107 , 437114 , 447464 , 449760 , 449761 , 458560 , 463123 , 465938 , 466916 , 467319 , 467516 , 468842 , 470947 , 476492 , 480672 , 489483 , 500470 , 500976 , 502008 , 502989 , 505966 , 511709 , 512243 , 512318 , 521022 , 524414 , 524831 , 525221 , 525224 , 525230 , 526663 , 541051 , 543837 , 553720 , 557984 , 558952 , 561890 , 562008 , 562342 , 563472 , 564138 , 572943 , 573360 , 574995 , 575777 , 576007 , 578081 , 578189 , 590258 , 592592 , 599045 , 609591 , 611984 , 624005 , 624821 , 646901 , 663568 , 671208 , 680653 , 696312 , 701774 , 714428 , 720301 , 728317 , 780718 );
Copy
5
107.98 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
387973
412609
416099
419378
427107
437114
447464
449760
449761
458560
463123
465938
466916
467319
467516
468842
470947
476492
480672
489483
500470
500976
502008
502989
505966
511709
512243
512318
521022
524414
524831
525221
525224
525230
526663
541051
543837
553720
557984
558952
561890
562008
562342
563472
564138
572943
573360
574995
575777
576007
578081
578189
590258
592592
599045
609591
611984
624005
624821
646901
663568
671208
680653
696312
701774
714428
720301
728317
780718
]
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 (387973 , 412609 , 416099 , 419378 , 427107 , 437114 , 447464 , 449760 , 449761 , 458560 , 463123 , 465938 , 466916 , 467319 , 467516 , 468842 , 470947 , 476492 , 480672 , 489483 , 500470 , 500976 , 502008 , 502989 , 505966 , 511709 , 512243 , 512318 , 521022 , 524414 , 524831 , 525221 , 525224 , 525230 , 526663 , 541051 , 543837 , 553720 , 557984 , 558952 , 561890 , 562008 , 562342 , 563472 , 564138 , 572943 , 573360 , 574995 , 575777 , 576007 , 578081 , 578189 , 590258 , 592592 , 599045 , 609591 , 611984 , 624005 , 624821 , 646901 , 663568 , 671208 , 680653 , 696312 , 701774 , 714428 , 720301 , 728317 , 780718 );
Copy