3
11.73 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
575674
656834
730500
526385
708325
648697
797100
802525
651420
551811
714082
757732
532120
785142
756722
568173
603169
723962
588712
631329
785517
767080
545058
718376
751026
742677
519608
719808
632784
653347
566415
755170
748432
562008
586912
603618
577537
492041
545014
515958
536865
492696
392109
604097
798135
397899
417836
565433
390865
584672
654290
551580
648657
502454
476663
562014
566187
743906
429873
472783
577215
492040
545009
424701
500476
462904
523212
451042
442398
513126
]
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 (575674 , 656834 , 730500 , 526385 , 708325 , 648697 , 797100 , 802525 , 651420 , 551811 , 714082 , 757732 , 532120 , 785142 , 756722 , 568173 , 603169 , 723962 , 588712 , 631329 , 785517 , 767080 , 545058 , 718376 , 751026 , 742677 , 519608 , 719808 , 632784 , 653347 , 566415 , 755170 , 748432 , 562008 , 586912 , 603618 , 577537 , 492041 , 545014 , 515958 , 536865 , 492696 , 392109 , 604097 , 798135 , 397899 , 417836 , 565433 , 390865 , 584672 , 654290 , 551580 , 648657 , 502454 , 476663 , 562014 , 566187 , 743906 , 429873 , 472783 , 577215 , 492040 , 545009 , 424701 , 500476 , 462904 , 523212 , 451042 , 442398 , 513126 );
Copy
4
2.89 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
390865
392109
397899
417836
424701
429873
442398
451042
462904
472783
476663
492040
492041
492696
500476
502454
513126
515958
519608
523212
526385
532120
536865
545009
545014
545058
551580
551811
562008
562014
565433
566187
566415
568173
575674
577215
577537
584672
586912
588712
603169
603618
604097
631329
632784
648657
648697
651420
653347
654290
656834
708325
714082
718376
719808
723962
730500
742677
743906
748432
751026
755170
756722
757732
767080
785142
785517
797100
798135
802525
]
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 (390865 , 392109 , 397899 , 417836 , 424701 , 429873 , 442398 , 451042 , 462904 , 472783 , 476663 , 492040 , 492041 , 492696 , 500476 , 502454 , 513126 , 515958 , 519608 , 523212 , 526385 , 532120 , 536865 , 545009 , 545014 , 545058 , 551580 , 551811 , 562008 , 562014 , 565433 , 566187 , 566415 , 568173 , 575674 , 577215 , 577537 , 584672 , 586912 , 588712 , 603169 , 603618 , 604097 , 631329 , 632784 , 648657 , 648697 , 651420 , 653347 , 654290 , 656834 , 708325 , 714082 , 718376 , 719808 , 723962 , 730500 , 742677 , 743906 , 748432 , 751026 , 755170 , 756722 , 757732 , 767080 , 785142 , 785517 , 797100 , 798135 , 802525 );
Copy
5
98.81 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
390865
392109
397899
417836
424701
429873
442398
451042
462904
472783
476663
492040
492041
492696
500476
502454
513126
515958
519608
523212
526385
532120
536865
545009
545014
545058
551580
551811
562008
562014
565433
566187
566415
568173
575674
577215
577537
584672
586912
588712
603169
603618
604097
631329
632784
648657
648697
651420
653347
654290
656834
708325
714082
718376
719808
723962
730500
742677
743906
748432
751026
755170
756722
757732
767080
785142
785517
797100
798135
802525
]
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 (390865 , 392109 , 397899 , 417836 , 424701 , 429873 , 442398 , 451042 , 462904 , 472783 , 476663 , 492040 , 492041 , 492696 , 500476 , 502454 , 513126 , 515958 , 519608 , 523212 , 526385 , 532120 , 536865 , 545009 , 545014 , 545058 , 551580 , 551811 , 562008 , 562014 , 565433 , 566187 , 566415 , 568173 , 575674 , 577215 , 577537 , 584672 , 586912 , 588712 , 603169 , 603618 , 604097 , 631329 , 632784 , 648657 , 648697 , 651420 , 653347 , 654290 , 656834 , 708325 , 714082 , 718376 , 719808 , 723962 , 730500 , 742677 , 743906 , 748432 , 751026 , 755170 , 756722 , 757732 , 767080 , 785142 , 785517 , 797100 , 798135 , 802525 );
Copy