3
13.76 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
567517
796998
569454
599467
785036
793458
811825
561677
738408
743464
598567
627117
668447
456918
468786
395227
805635
623757
489506
526187
696888
662206
517652
577692
602755
608662
509325
522238
527395
808625
473308
502257
659035
598158
550615
574244
660555
546861
598524
457502
507946
554292
588200
453342
519905
572305
424505
429814
503388
603033
463957
532644
609861
609100
624122
575007
653464
612857
608549
524512
604776
608200
623616
601630
550436
553056
658421
624847
615696
521544
]
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 (567517 , 796998 , 569454 , 599467 , 785036 , 793458 , 811825 , 561677 , 738408 , 743464 , 598567 , 627117 , 668447 , 456918 , 468786 , 395227 , 805635 , 623757 , 489506 , 526187 , 696888 , 662206 , 517652 , 577692 , 602755 , 608662 , 509325 , 522238 , 527395 , 808625 , 473308 , 502257 , 659035 , 598158 , 550615 , 574244 , 660555 , 546861 , 598524 , 457502 , 507946 , 554292 , 588200 , 453342 , 519905 , 572305 , 424505 , 429814 , 503388 , 603033 , 463957 , 532644 , 609861 , 609100 , 624122 , 575007 , 653464 , 612857 , 608549 , 524512 , 604776 , 608200 , 623616 , 601630 , 550436 , 553056 , 658421 , 624847 , 615696 , 521544 );
Copy
4
2.57 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
395227
424505
429814
453342
456918
457502
463957
468786
473308
489506
502257
503388
507946
509325
517652
519905
521544
522238
524512
526187
527395
532644
546861
550436
550615
553056
554292
561677
567517
569454
572305
574244
575007
577692
588200
598158
598524
598567
599467
601630
602755
603033
604776
608200
608549
608662
609100
609861
612857
615696
623616
623757
624122
624847
627117
653464
658421
659035
660555
662206
668447
696888
738408
743464
785036
793458
796998
805635
808625
811825
]
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 (395227 , 424505 , 429814 , 453342 , 456918 , 457502 , 463957 , 468786 , 473308 , 489506 , 502257 , 503388 , 507946 , 509325 , 517652 , 519905 , 521544 , 522238 , 524512 , 526187 , 527395 , 532644 , 546861 , 550436 , 550615 , 553056 , 554292 , 561677 , 567517 , 569454 , 572305 , 574244 , 575007 , 577692 , 588200 , 598158 , 598524 , 598567 , 599467 , 601630 , 602755 , 603033 , 604776 , 608200 , 608549 , 608662 , 609100 , 609861 , 612857 , 615696 , 623616 , 623757 , 624122 , 624847 , 627117 , 653464 , 658421 , 659035 , 660555 , 662206 , 668447 , 696888 , 738408 , 743464 , 785036 , 793458 , 796998 , 805635 , 808625 , 811825 );
Copy
5
143.99 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
395227
424505
429814
453342
456918
457502
463957
468786
473308
489506
502257
503388
507946
509325
517652
519905
521544
522238
524512
526187
527395
532644
546861
550436
550615
553056
554292
561677
567517
569454
572305
574244
575007
577692
588200
598158
598524
598567
599467
601630
602755
603033
604776
608200
608549
608662
609100
609861
612857
615696
623616
623757
624122
624847
627117
653464
658421
659035
660555
662206
668447
696888
738408
743464
785036
793458
796998
805635
808625
811825
]
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 (395227 , 424505 , 429814 , 453342 , 456918 , 457502 , 463957 , 468786 , 473308 , 489506 , 502257 , 503388 , 507946 , 509325 , 517652 , 519905 , 521544 , 522238 , 524512 , 526187 , 527395 , 532644 , 546861 , 550436 , 550615 , 553056 , 554292 , 561677 , 567517 , 569454 , 572305 , 574244 , 575007 , 577692 , 588200 , 598158 , 598524 , 598567 , 599467 , 601630 , 602755 , 603033 , 604776 , 608200 , 608549 , 608662 , 609100 , 609861 , 612857 , 615696 , 623616 , 623757 , 624122 , 624847 , 627117 , 653464 , 658421 , 659035 , 660555 , 662206 , 668447 , 696888 , 738408 , 743464 , 785036 , 793458 , 796998 , 805635 , 808625 , 811825 );
Copy