3
13.46 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
508121
524226
527421
432771
413594
418828
462527
447916
478044
482644
508491
516324
519257
513750
500480
500590
514814
528386
487348
542678
545616
475245
439214
395913
453768
522859
489310
490428
491999
509622
511308
511841
511791
515347
540996
516727
482674
458764
480512
510004
515769
517454
509986
519248
529777
543193
466021
470302
418373
440876
442841
433323
487424
490453
502817
524934
480719
485061
502779
456888
474000
508497
510742
514375
541614
601537
489112
495753
]
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 (508121 , 524226 , 527421 , 432771 , 413594 , 418828 , 462527 , 447916 , 478044 , 482644 , 508491 , 516324 , 519257 , 513750 , 500480 , 500590 , 514814 , 528386 , 487348 , 542678 , 545616 , 475245 , 439214 , 395913 , 453768 , 522859 , 489310 , 490428 , 491999 , 509622 , 511308 , 511841 , 511791 , 515347 , 540996 , 516727 , 482674 , 458764 , 480512 , 510004 , 515769 , 517454 , 509986 , 519248 , 529777 , 543193 , 466021 , 470302 , 418373 , 440876 , 442841 , 433323 , 487424 , 490453 , 502817 , 524934 , 480719 , 485061 , 502779 , 456888 , 474000 , 508497 , 510742 , 514375 , 541614 , 601537 , 489112 , 495753 );
Copy
4
3.21 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
395913
413594
418373
418828
432771
433323
439214
440876
442841
447916
453768
456888
458764
462527
466021
470302
474000
475245
478044
480512
480719
482644
482674
485061
487348
487424
489112
489310
490428
490453
491999
495753
500480
500590
502779
502817
508121
508491
508497
509622
509986
510004
510742
511308
511791
511841
513750
514375
514814
515347
515769
516324
516727
517454
519248
519257
522859
524226
524934
527421
528386
529777
540996
541614
542678
543193
545616
601537
]
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 (395913 , 413594 , 418373 , 418828 , 432771 , 433323 , 439214 , 440876 , 442841 , 447916 , 453768 , 456888 , 458764 , 462527 , 466021 , 470302 , 474000 , 475245 , 478044 , 480512 , 480719 , 482644 , 482674 , 485061 , 487348 , 487424 , 489112 , 489310 , 490428 , 490453 , 491999 , 495753 , 500480 , 500590 , 502779 , 502817 , 508121 , 508491 , 508497 , 509622 , 509986 , 510004 , 510742 , 511308 , 511791 , 511841 , 513750 , 514375 , 514814 , 515347 , 515769 , 516324 , 516727 , 517454 , 519248 , 519257 , 522859 , 524226 , 524934 , 527421 , 528386 , 529777 , 540996 , 541614 , 542678 , 543193 , 545616 , 601537 );
Copy
5
93.11 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
395913
413594
418373
418828
432771
433323
439214
440876
442841
447916
453768
456888
458764
462527
466021
470302
474000
475245
478044
480512
480719
482644
482674
485061
487348
487424
489112
489310
490428
490453
491999
495753
500480
500590
502779
502817
508121
508491
508497
509622
509986
510004
510742
511308
511791
511841
513750
514375
514814
515347
515769
516324
516727
517454
519248
519257
522859
524226
524934
527421
528386
529777
540996
541614
542678
543193
545616
601537
]
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 (395913 , 413594 , 418373 , 418828 , 432771 , 433323 , 439214 , 440876 , 442841 , 447916 , 453768 , 456888 , 458764 , 462527 , 466021 , 470302 , 474000 , 475245 , 478044 , 480512 , 480719 , 482644 , 482674 , 485061 , 487348 , 487424 , 489112 , 489310 , 490428 , 490453 , 491999 , 495753 , 500480 , 500590 , 502779 , 502817 , 508121 , 508491 , 508497 , 509622 , 509986 , 510004 , 510742 , 511308 , 511791 , 511841 , 513750 , 514375 , 514814 , 515347 , 515769 , 516324 , 516727 , 517454 , 519248 , 519257 , 522859 , 524226 , 524934 , 527421 , 528386 , 529777 , 540996 , 541614 , 542678 , 543193 , 545616 , 601537 );
Copy