3
11.23 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
462230
812171
748594
533495
387180
697736
633482
593242
382744
702862
796234
416143
709886
653693
594973
488277
396910
386671
469759
683330
729930
413735
405078
390693
695913
593516
599432
525345
399338
401142
454885
462781
550417
676825
808068
792817
417655
410150
463108
776531
417750
459802
487500
495123
416181
500207
599305
434071
599962
443093
453597
458773
415387
405093
417897
526195
500767
624221
395687
414368
524530
429386
492555
522049
]
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 (462230 , 812171 , 748594 , 533495 , 387180 , 697736 , 633482 , 593242 , 382744 , 702862 , 796234 , 416143 , 709886 , 653693 , 594973 , 488277 , 396910 , 386671 , 469759 , 683330 , 729930 , 413735 , 405078 , 390693 , 695913 , 593516 , 599432 , 525345 , 399338 , 401142 , 454885 , 462781 , 550417 , 676825 , 808068 , 792817 , 417655 , 410150 , 463108 , 776531 , 417750 , 459802 , 487500 , 495123 , 416181 , 500207 , 599305 , 434071 , 599962 , 443093 , 453597 , 458773 , 415387 , 405093 , 417897 , 526195 , 500767 , 624221 , 395687 , 414368 , 524530 , 429386 , 492555 , 522049 );
Copy
4
3.23 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
382744
386671
387180
390693
395687
396910
399338
401142
405078
405093
410150
413735
414368
415387
416143
416181
417655
417750
417897
429386
434071
443093
453597
454885
458773
459802
462230
462781
463108
469759
487500
488277
492555
495123
500207
500767
522049
524530
525345
526195
533495
550417
593242
593516
594973
599305
599962
624221
633482
653693
676825
683330
695913
697736
702862
709886
729930
748594
776531
792817
796234
808068
812171
]
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 (382744 , 386671 , 387180 , 390693 , 395687 , 396910 , 399338 , 401142 , 405078 , 405093 , 410150 , 413735 , 414368 , 415387 , 416143 , 416181 , 417655 , 417750 , 417897 , 429386 , 434071 , 443093 , 453597 , 454885 , 458773 , 459802 , 462230 , 462781 , 463108 , 469759 , 487500 , 488277 , 492555 , 495123 , 500207 , 500767 , 522049 , 524530 , 525345 , 526195 , 533495 , 550417 , 593242 , 593516 , 594973 , 599305 , 599962 , 624221 , 633482 , 653693 , 676825 , 683330 , 695913 , 697736 , 702862 , 709886 , 729930 , 748594 , 776531 , 792817 , 796234 , 808068 , 812171 );
Copy
5
100.78 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
382744
386671
387180
390693
395687
396910
399338
401142
405078
405093
410150
413735
414368
415387
416143
416181
417655
417750
417897
429386
434071
443093
453597
454885
458773
459802
462230
462781
463108
469759
487500
488277
492555
495123
500207
500767
522049
524530
525345
526195
533495
550417
593242
593516
594973
599305
599962
624221
633482
653693
676825
683330
695913
697736
702862
709886
729930
748594
776531
792817
796234
808068
812171
]
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 (382744 , 386671 , 387180 , 390693 , 395687 , 396910 , 399338 , 401142 , 405078 , 405093 , 410150 , 413735 , 414368 , 415387 , 416143 , 416181 , 417655 , 417750 , 417897 , 429386 , 434071 , 443093 , 453597 , 454885 , 458773 , 459802 , 462230 , 462781 , 463108 , 469759 , 487500 , 488277 , 492555 , 495123 , 500207 , 500767 , 522049 , 524530 , 525345 , 526195 , 533495 , 550417 , 593242 , 593516 , 594973 , 599305 , 599962 , 624221 , 633482 , 653693 , 676825 , 683330 , 695913 , 697736 , 702862 , 709886 , 729930 , 748594 , 776531 , 792817 , 796234 , 808068 , 812171 );
Copy