3
11.41 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
742159
700195
683515
665872
804020
669755
791539
803709
730982
792821
575549
696324
606781
792833
575481
567008
712679
584792
612334
774067
576081
554616
569446
609626
617855
477319
462781
491857
555675
557961
557996
570732
792817
500037
483115
524540
587915
601979
476372
503047
548034
554376
566321
549748
562314
570695
562922
583283
575011
620746
757906
516261
511536
500069
508836
514372
514097
575819
687243
467459
522101
564443
669738
566323
526494
515977
617006
563479
587651
603812
624109
560511
]
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 (742159 , 700195 , 683515 , 665872 , 804020 , 669755 , 791539 , 803709 , 730982 , 792821 , 575549 , 696324 , 606781 , 792833 , 575481 , 567008 , 712679 , 584792 , 612334 , 774067 , 576081 , 554616 , 569446 , 609626 , 617855 , 477319 , 462781 , 491857 , 555675 , 557961 , 557996 , 570732 , 792817 , 500037 , 483115 , 524540 , 587915 , 601979 , 476372 , 503047 , 548034 , 554376 , 566321 , 549748 , 562314 , 570695 , 562922 , 583283 , 575011 , 620746 , 757906 , 516261 , 511536 , 500069 , 508836 , 514372 , 514097 , 575819 , 687243 , 467459 , 522101 , 564443 , 669738 , 566323 , 526494 , 515977 , 617006 , 563479 , 587651 , 603812 , 624109 , 560511 );
Copy
4
2.61 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
462781
467459
476372
477319
483115
491857
500037
500069
503047
508836
511536
514097
514372
515977
516261
522101
524540
526494
548034
549748
554376
554616
555675
557961
557996
560511
562314
562922
563479
564443
566321
566323
567008
569446
570695
570732
575011
575481
575549
575819
576081
583283
584792
587651
587915
601979
603812
606781
609626
612334
617006
617855
620746
624109
665872
669738
669755
683515
687243
696324
700195
712679
730982
742159
757906
774067
791539
792817
792821
792833
803709
804020
]
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 (462781 , 467459 , 476372 , 477319 , 483115 , 491857 , 500037 , 500069 , 503047 , 508836 , 511536 , 514097 , 514372 , 515977 , 516261 , 522101 , 524540 , 526494 , 548034 , 549748 , 554376 , 554616 , 555675 , 557961 , 557996 , 560511 , 562314 , 562922 , 563479 , 564443 , 566321 , 566323 , 567008 , 569446 , 570695 , 570732 , 575011 , 575481 , 575549 , 575819 , 576081 , 583283 , 584792 , 587651 , 587915 , 601979 , 603812 , 606781 , 609626 , 612334 , 617006 , 617855 , 620746 , 624109 , 665872 , 669738 , 669755 , 683515 , 687243 , 696324 , 700195 , 712679 , 730982 , 742159 , 757906 , 774067 , 791539 , 792817 , 792821 , 792833 , 803709 , 804020 );
Copy
5
150.23 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
462781
467459
476372
477319
483115
491857
500037
500069
503047
508836
511536
514097
514372
515977
516261
522101
524540
526494
548034
549748
554376
554616
555675
557961
557996
560511
562314
562922
563479
564443
566321
566323
567008
569446
570695
570732
575011
575481
575549
575819
576081
583283
584792
587651
587915
601979
603812
606781
609626
612334
617006
617855
620746
624109
665872
669738
669755
683515
687243
696324
700195
712679
730982
742159
757906
774067
791539
792817
792821
792833
803709
804020
]
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 (462781 , 467459 , 476372 , 477319 , 483115 , 491857 , 500037 , 500069 , 503047 , 508836 , 511536 , 514097 , 514372 , 515977 , 516261 , 522101 , 524540 , 526494 , 548034 , 549748 , 554376 , 554616 , 555675 , 557961 , 557996 , 560511 , 562314 , 562922 , 563479 , 564443 , 566321 , 566323 , 567008 , 569446 , 570695 , 570732 , 575011 , 575481 , 575549 , 575819 , 576081 , 583283 , 584792 , 587651 , 587915 , 601979 , 603812 , 606781 , 609626 , 612334 , 617006 , 617855 , 620746 , 624109 , 665872 , 669738 , 669755 , 683515 , 687243 , 696324 , 700195 , 712679 , 730982 , 742159 , 757906 , 774067 , 791539 , 792817 , 792821 , 792833 , 803709 , 804020 );
Copy