3
13.05 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
471439
483547
519556
522147
523401
510198
517654
517843
521489
530482
517788
524183
483319
577368
583989
541749
544281
678131
545461
567046
590256
619951
586591
522095
502489
468676
579360
570704
647975
556778
556797
624504
623264
633734
495400
533966
537212
518473
531187
532662
532643
541419
543844
552623
583366
541740
579038
650155
680176
559183
562758
624173
617427
615818
513951
517836
536695
573212
576717
605521
600011
599940
582229
]
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 (471439 , 483547 , 519556 , 522147 , 523401 , 510198 , 517654 , 517843 , 521489 , 530482 , 517788 , 524183 , 483319 , 577368 , 583989 , 541749 , 544281 , 678131 , 545461 , 567046 , 590256 , 619951 , 586591 , 522095 , 502489 , 468676 , 579360 , 570704 , 647975 , 556778 , 556797 , 624504 , 623264 , 633734 , 495400 , 533966 , 537212 , 518473 , 531187 , 532662 , 532643 , 541419 , 543844 , 552623 , 583366 , 541740 , 579038 , 650155 , 680176 , 559183 , 562758 , 624173 , 617427 , 615818 , 513951 , 517836 , 536695 , 573212 , 576717 , 605521 , 600011 , 599940 , 582229 );
Copy
4
2.25 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
468676
471439
483319
483547
495400
502489
510198
513951
517654
517788
517836
517843
518473
519556
521489
522095
522147
523401
524183
530482
531187
532643
532662
533966
536695
537212
541419
541740
541749
543844
544281
545461
552623
556778
556797
559183
562758
567046
570704
573212
576717
577368
579038
579360
582229
583366
583989
586591
590256
599940
600011
605521
615818
617427
619951
623264
624173
624504
633734
647975
650155
678131
680176
]
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 (468676 , 471439 , 483319 , 483547 , 495400 , 502489 , 510198 , 513951 , 517654 , 517788 , 517836 , 517843 , 518473 , 519556 , 521489 , 522095 , 522147 , 523401 , 524183 , 530482 , 531187 , 532643 , 532662 , 533966 , 536695 , 537212 , 541419 , 541740 , 541749 , 543844 , 544281 , 545461 , 552623 , 556778 , 556797 , 559183 , 562758 , 567046 , 570704 , 573212 , 576717 , 577368 , 579038 , 579360 , 582229 , 583366 , 583989 , 586591 , 590256 , 599940 , 600011 , 605521 , 615818 , 617427 , 619951 , 623264 , 624173 , 624504 , 633734 , 647975 , 650155 , 678131 , 680176 );
Copy
5
67.60 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
468676
471439
483319
483547
495400
502489
510198
513951
517654
517788
517836
517843
518473
519556
521489
522095
522147
523401
524183
530482
531187
532643
532662
533966
536695
537212
541419
541740
541749
543844
544281
545461
552623
556778
556797
559183
562758
567046
570704
573212
576717
577368
579038
579360
582229
583366
583989
586591
590256
599940
600011
605521
615818
617427
619951
623264
624173
624504
633734
647975
650155
678131
680176
]
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 (468676 , 471439 , 483319 , 483547 , 495400 , 502489 , 510198 , 513951 , 517654 , 517788 , 517836 , 517843 , 518473 , 519556 , 521489 , 522095 , 522147 , 523401 , 524183 , 530482 , 531187 , 532643 , 532662 , 533966 , 536695 , 537212 , 541419 , 541740 , 541749 , 543844 , 544281 , 545461 , 552623 , 556778 , 556797 , 559183 , 562758 , 567046 , 570704 , 573212 , 576717 , 577368 , 579038 , 579360 , 582229 , 583366 , 583989 , 586591 , 590256 , 599940 , 600011 , 605521 , 615818 , 617427 , 619951 , 623264 , 624173 , 624504 , 633734 , 647975 , 650155 , 678131 , 680176 );
Copy